Skip to content

Commit 0e3d768

Browse files
committed
Update isort to v5.5.4 in pre-commit
Required changes to the configuration to stop using deprecated modules, and to avoid isort thinking that everything in the standard library *except* `zoneinfo` was actually a third-party package. This also pins the minimum isort at 5.0.0 in tox.
1 parent 8d38265 commit 0e3d768

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ repos:
66
language_version: python3.8
77

88
- repo: https://github.com/pre-commit/mirrors-isort
9-
rev: v4.3.21
9+
rev: v5.5.4
1010
hooks:
1111
- id: isort
1212
additional_dependencies: [toml]

docs/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
# https://www.sphinx-doc.org/en/master/usage/configuration.html
66

77
import sphinx_bootstrap_theme
8+
89
import tzdata
910

1011
# -- Project information -----------------------------------------------------

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ atomic=true
77
force_grid_wrap=0
88
include_trailing_comma=true
99
known_first_party=["tzdata"]
10-
known_standard_library=["zoneinfo"]
10+
extra_standard_library=["zoneinfo"]
1111
known_third_party=["click", "parver", "pytest", "requests"]
1212
multi_line_output=3
13-
not_skip="__init__.py"
1413
use_parentheses=true

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ description = Run auto formatters
5454
skip_install = True
5555
deps =
5656
black
57-
isort
57+
isort >= 5.0.0
5858
commands =
5959
black .
6060
isort update.py

0 commit comments

Comments
 (0)