Skip to content

Commit e48634e

Browse files
build: Fix isort/black compatibility
1 parent dcb930a commit e48634e

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,11 @@ repos:
3030
- id: buildifier-lint
3131
args: *args
3232
- repo: https://github.com/pycqa/isort
33-
rev: 5.12.0
33+
rev: 6.0.1
3434
hooks:
3535
- id: isort
3636
name: isort (python)
37-
args:
38-
- --profile
39-
- black
37+
args: ["--profile", "black", "--filter-files"]
4038
- repo: https://github.com/psf/black
4139
rev: 25.1.0
4240
hooks:

gazelle/python/testdata/relative_imports_package_mode/package1/subpackage1/subpackage2/script.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
from ...my_library import (
1+
from ...my_library import ( # Import path should be package1.my_library.some_function
22
some_function,
3-
) # Import path should be package1.my_library.some_function
3+
)
44
from ...my_library.foo import ( # Import path should be package1.my_library.foo.some_function
55
some_function,
66
)

0 commit comments

Comments
 (0)