Skip to content

update black and flake8-bugbear #13938

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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