Skip to content

Commit

Permalink
Unbreak black
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 committed Mar 28, 2022
1 parent 371fdeb commit 29d4b6c
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
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
@@ -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
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 29d4b6c

Please sign in to comment.