Skip to content

Commit

Permalink
update black and flake8-bugbear (#13938)
Browse files Browse the repository at this point in the history
bump these two dependencies.

Also:
- add all supported python versions to black config
- change black to use `force-exclude` so that pre-commit/other tools
work better

Co-authored-by: KotlinIsland <[email protected]>
  • Loading branch information
KotlinIsland and KotlinIsland authored Oct 23, 2022
1 parent 81ea363 commit cf705d7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/psf/black
rev: 22.6.0 # must match test-requirements.txt
rev: 22.10.0 # must match test-requirements.txt
hooks:
- id: black
- repo: https://github.com/pycqa/isort
Expand All @@ -12,5 +12,5 @@ repos:
hooks:
- id: flake8
additional_dependencies:
- flake8-bugbear==22.8.23 # must match test-requirements.txt
- flake8-bugbear==22.9.23 # must match test-requirements.txt
- flake8-noqa==1.2.9 # must match test-requirements.txt
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ build-backend = "setuptools.build_meta"

[tool.black]
line-length = 99
target-version = ['py37']
target-version = ["py37", "py38", "py39", "py310", "py311"]
skip-magic-trailing-comma = true
extend-exclude = '''
force-exclude = '''
^/mypy/typeshed|
^/mypyc/test-data|
^/test-data
Expand Down
4 changes: 2 additions & 2 deletions test-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
-r mypy-requirements.txt
-r build-requirements.txt
attrs>=18.0
black==22.6.0 # must match version in .pre-commit-config.yaml
black==22.10.0 # must match version in .pre-commit-config.yaml
filelock>=3.3.0
flake8==5.0.4 # must match version in .pre-commit-config.yaml
flake8-bugbear==22.8.23 # must match version in .pre-commit-config.yaml
flake8-bugbear==22.9.23 # must match version in .pre-commit-config.yaml
flake8-noqa==1.2.9 # must match version in .pre-commit-config.yaml
isort[colors]==5.10.1 # must match version in .pre-commit-config.yaml
lxml>=4.4.0; python_version<'3.11'
Expand Down

0 comments on commit cf705d7

Please sign in to comment.