Skip to content
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

Unbreak black #701

Merged
merged 1 commit into from
Mar 28, 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
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