diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4761dd05..75e0c127 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,25 +5,22 @@ repos: - id: check-merge-conflict - id: trailing-whitespace - repo: https://github.com/python/black - # refrain from using 19.10b0 or later until - # https://github.com/psf/black/issues/1288 - # is fixed - rev: 19.3b0 + rev: 20.8b1 hooks: - id: black name: "Autoformat python files" types: [python] language_version: python3 - repo: https://gitlab.com/pycqa/flake8 - rev: 3.8.3 + rev: 3.8.4 hooks: - id: flake8 name: "Lint python files" types: [python] language_version: python3 - additional_dependencies: ['flake8-bugbear==20.1.4'] + additional_dependencies: ['flake8-bugbear==20.11.1'] - repo: https://github.com/timothycrosley/isort - rev: 5.1.4 + rev: 5.6.4 hooks: - id: isort name: "Sort python imports" diff --git a/setup.py b/setup.py index c36c54b7..693d8de5 100644 --- a/setup.py +++ b/setup.py @@ -49,14 +49,10 @@ "tox>=3.5.3,<4.0", # linting "flake8>=3.0,<4.0", - 'isort>=5.1.4,<6.0;python_version>="3.6"', - # black requires py3.6+ - # refrain from using 19.10b0 or later until - # https://github.com/psf/black/issues/1288 - # is fixed - 'black==19.3b0;python_version>="3.6"', + 'isort>=5.6.4,<6.0;python_version>="3.6"', + 'black==20.8b1;python_version>="3.6"', # flake-bugbear requires py3.6+ - 'flake8-bugbear==20.1.4;python_version>="3.6"', + 'flake8-bugbear==20.11.1;python_version>="3.6"', # testing "pytest<5.0", "pytest-cov<3.0",