Skip to content

Commit cf705d7

Browse files
authored
update black and flake8-bugbear (#13938)
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]>
1 parent 81ea363 commit cf705d7

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.pre-commit-config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/psf/black
3-
rev: 22.6.0 # must match test-requirements.txt
3+
rev: 22.10.0 # must match test-requirements.txt
44
hooks:
55
- id: black
66
- repo: https://github.com/pycqa/isort
@@ -12,5 +12,5 @@ repos:
1212
hooks:
1313
- id: flake8
1414
additional_dependencies:
15-
- flake8-bugbear==22.8.23 # must match test-requirements.txt
15+
- flake8-bugbear==22.9.23 # must match test-requirements.txt
1616
- flake8-noqa==1.2.9 # must match test-requirements.txt

pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ build-backend = "setuptools.build_meta"
1919

2020
[tool.black]
2121
line-length = 99
22-
target-version = ['py37']
22+
target-version = ["py37", "py38", "py39", "py310", "py311"]
2323
skip-magic-trailing-comma = true
24-
extend-exclude = '''
24+
force-exclude = '''
2525
^/mypy/typeshed|
2626
^/mypyc/test-data|
2727
^/test-data

test-requirements.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
-r mypy-requirements.txt
22
-r build-requirements.txt
33
attrs>=18.0
4-
black==22.6.0 # must match version in .pre-commit-config.yaml
4+
black==22.10.0 # must match version in .pre-commit-config.yaml
55
filelock>=3.3.0
66
flake8==5.0.4 # must match version in .pre-commit-config.yaml
7-
flake8-bugbear==22.8.23 # must match version in .pre-commit-config.yaml
7+
flake8-bugbear==22.9.23 # must match version in .pre-commit-config.yaml
88
flake8-noqa==1.2.9 # must match version in .pre-commit-config.yaml
99
isort[colors]==5.10.1 # must match version in .pre-commit-config.yaml
1010
lxml>=4.4.0; python_version<'3.11'

0 commit comments

Comments
 (0)