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 04fd977
Showing 1 changed file with 4 additions and 1 deletion.
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

0 comments on commit 04fd977

Please sign in to comment.