Skip to content

Commit e2f8524

Browse files
build: Add exceptions
1 parent 5e75007 commit e2f8524

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ repos:
3737
args:
3838
- --profile
3939
- black
40+
exclude: import_nested_var/__init__.py
4041
- repo: https://github.com/psf/black
4142
rev: 25.1.0
4243
hooks:

gazelle/python/testdata/dependency_resolution_order/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020

2121
# Ensure that even though @gazelle_python_test//other_pip_dep provides "third_party",
2222
# we can still override "third_party.foo.bar"
23-
import third_party.foo.bar
23+
import third_party.foo.bar # isort:skip
2424

25-
import third_party
26-
from third_party import baz
25+
import third_party # isort:skip
26+
from third_party import baz # isort:skip
2727

2828
_ = sys
2929
_ = bar

gazelle/python/testdata/from_imports/import_nested_var/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
# fmt: off
16+
1517
# baz is a variable in foo/bar/baz.py
1618
from foo\
1719
.bar.\

0 commit comments

Comments
 (0)