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 6d88181
Show file tree
Hide file tree
Showing 2 changed files with 4 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
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 6d88181

Please sign in to comment.