Skip to content

Commit

Permalink
Unbreak black (#701)
Browse files Browse the repository at this point in the history
Move to the stable release and pin click, as black used the wrong exception to
work around a click interaction causing issues. See psf/black#2964
  • Loading branch information
mjpieters authored Mar 28, 2022
1 parent 371fdeb commit 401ffb1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,13 @@ repos:
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: '21.10b0'
rev: '22.1.0'
hooks:
- id: black
language_version: python3 # Should be a command that runs python3.6+
# Black misbehaved and broke when click 8.1.0 was released with an internal
# module removed. See https://github.com/psf/black/issues/2964
additional_dependencies: ['click<8.1.0']
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 'v4.0.1'
hooks:
Expand Down
2 changes: 2 additions & 0 deletions CHANGES/701.misc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Updated the black .pre-commit-hook configuration to avoid it breaking due to
`Black issue #2964 <https://github.com/psf/black/issues/2964>`_.
1 change: 0 additions & 1 deletion tests/test_quoting.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ def quoter(request):
def unquoter(request):
return request.param


else:

@pytest.fixture(params=[_PyQuoter], ids=["py_quoter"])
Expand Down

0 comments on commit 401ffb1

Please sign in to comment.