build: Fix isort/black compatibility
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 67a02fc..c3c63fe 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml
@@ -30,13 +30,11 @@ - id: buildifier-lint args: *args - repo: https://github.com/pycqa/isort - rev: 5.12.0 + rev: 6.0.1 hooks: - id: isort name: isort (python) - args: - - --profile - - black + args: ["--profile", "black", "--filter-files"] - repo: https://github.com/psf/black rev: 25.1.0 hooks:
diff --git a/gazelle/python/testdata/relative_imports_package_mode/package1/subpackage1/subpackage2/script.py b/gazelle/python/testdata/relative_imports_package_mode/package1/subpackage1/subpackage2/script.py index 8302e03..aa62cb2 100644 --- a/gazelle/python/testdata/relative_imports_package_mode/package1/subpackage1/subpackage2/script.py +++ b/gazelle/python/testdata/relative_imports_package_mode/package1/subpackage1/subpackage2/script.py
@@ -1,6 +1,6 @@ -from ...my_library import ( +from ...my_library import ( # Import path should be package1.my_library.some_function some_function, -) # Import path should be package1.my_library.some_function +) from ...my_library.foo import ( # Import path should be package1.my_library.foo.some_function some_function, )