Skip to content

Commit 0fc264a

Browse files
Enforce pre-commit to use a recent and fixed version of isort. (#5408)
Previously pre-commit was using any version of isort found on developer machine. Now, used isort is from the official repository and version is set to 5.7.0 (which is nowadays the latest release). Co-authored-by: Akihiro Nitta <[email protected]> Co-authored-by: Akihiro Nitta <[email protected]>
1 parent 3ee1b55 commit 0fc264a

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,11 @@ repos:
2222
- id: trailing-whitespace
2323
- id: end-of-file-fixer
2424

25-
- repo: local
25+
- repo: https://github.com/PyCQA/isort
26+
rev: 5.7.0
2627
hooks:
2728
- id: isort
28-
name: isort
29-
entry: python -m isort
3029
args: [--settings-path, ./pyproject.toml]
31-
language: system
32-
types: [python]
3330

3431
- repo: https://github.com/pre-commit/mirrors-mypy
3532
rev: v0.790

0 commit comments

Comments
 (0)