Skip to content

Commit

Permalink
Update Black to resolve pre-commit ImportError
Browse files Browse the repository at this point in the history
https://black.readthedocs.io/en/stable/change_log.html
pallets/click#2225
psf/black#2964

Black was raising an error when used with pre-commit:
`ImportError: cannot import name '_unicodefun' from 'click'`.
Black 22.3.0 resolves the `ImportError`.
  • Loading branch information
br3ndonland committed Apr 9, 2022
1 parent ca9a39f commit a63fe07
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ minimum_pre_commit_version: 2.11.0
default_stages: [commit, push, manual]
repos:
- repo: https://github.com/psf/black
rev: 21.12b0
rev: 22.3.0
hooks:
- id: black
- repo: https://github.com/pycqa/flake8
Expand Down
41 changes: 29 additions & 12 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ anyio = "^3.3"
httpx = {version = "^0.22", optional = true}

[tool.poetry.dev-dependencies]
black = {version = "21.12b0", allow-prereleases = true}
black = "^22"
flake8 = "^4"
isort = "^5.8"
mkdocs-material = "^8"
Expand Down

0 comments on commit a63fe07

Please sign in to comment.