Skip to content

Commit

Permalink
update black version, and exclude the tests/b*** files from formattin…
Browse files Browse the repository at this point in the history
…g checks so they don't break tests (#428)

* update black version, and exclude the tests/b*** files from formatting checks so they don't break tests

* exclude from black via pyproject.toml instead, so black cli works too
  • Loading branch information
r-downing authored Nov 27, 2023
1 parent 7196efa commit 5691df6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ repos:
- id: isort

- repo: https://github.com/psf/black
rev: 23.10.1
rev: 23.11.0
hooks:
- id: black
args:
Expand Down
7 changes: 7 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,10 @@ version = {attr = "bugbear.__version__"}

[tool.isort]
profile = "black"

[tool.black]
force-exclude = '''
(
^/tests\/b.*
)
'''

0 comments on commit 5691df6

Please sign in to comment.