Skip to content

Commit

Permalink
Upgrade to isort 5.12.0 (#342)
Browse files Browse the repository at this point in the history
isort <5.12.0 is incompatible with the latest version of `poetry-core`,
which has been causing many failures in pre-commit across many repos.
(See PyCQA/isort#2077 for more details.)
  • Loading branch information
AlexWaygood authored Jan 30, 2023
1 parent 6b18eec commit 997e030
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ repos:
- id: black
language_version: python3.7
- repo: https://github.com/pycqa/isort
rev: 5.11.4 # must match pyproject.toml
rev: 5.12.0 # must match pyproject.toml
hooks:
- id: isort
name: isort (python)
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ dependencies = [

[project.optional-dependencies]
dev = [
"black==22.12.0", # Must match .pre-commit-config.yaml
"black==22.12.0", # Must match .pre-commit-config.yaml
"flake8-bugbear==23.1.14",
"flake8-noqa==1.3.0",
"isort==5.11.4", # Must match .pre-commit-config.yaml
"isort==5.12.0; python_version >= '3.8'", # Must match .pre-commit-config.yaml
"mypy==0.991",
"pre-commit-hooks==4.4.0", # Must match .pre-commit-config.yaml
"pre-commit-hooks==4.4.0", # Must match .pre-commit-config.yaml
"pytest==7.2.1",
"types-pyflakes<4",
]
Expand Down

0 comments on commit 997e030

Please sign in to comment.