Skip to content

Commit 4484c85

Browse files
committed
Add overrides for existing tests that break when directive value flips
1 parent dc1dbf1 commit 4484c85

File tree

10 files changed

+13
-1
lines changed

10 files changed

+13
-1
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
# gazelle:python_generation_mode file
2+
# gazelle:python_resolve_sibling_imports enabled

gazelle/python/testdata/annotation_include_dep/BUILD.out

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
load("@rules_python//python:defs.bzl", "py_binary", "py_library", "py_test")
22

33
# gazelle:python_generation_mode file
4+
# gazelle:python_resolve_sibling_imports enabled
45

56
py_library(
67
name = "__init__",
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# gazelle:python_library_naming_convention my_$package_name$_library
22
# gazelle:python_binary_naming_convention my_$package_name$_binary
33
# gazelle:python_test_naming_convention my_$package_name$_test
4+
# gazelle:python_resolve_sibling_imports enabled

gazelle/python/testdata/naming_convention/BUILD.out

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ load("@rules_python//python:defs.bzl", "py_binary", "py_library", "py_test")
33
# gazelle:python_library_naming_convention my_$package_name$_library
44
# gazelle:python_binary_naming_convention my_$package_name$_binary
55
# gazelle:python_test_naming_convention my_$package_name$_test
6+
# gazelle:python_resolve_sibling_imports enabled
67

78
py_library(
89
name = "my_naming_convention_library",
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# gazelle:python_resolve_sibling_imports enabled

gazelle/python/testdata/sibling_imports/pkg/BUILD.out

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
load("@rules_python//python:defs.bzl", "py_library", "py_test")
22

3+
# gazelle:python_resolve_sibling_imports enabled
4+
35
py_library(
46
name = "pkg",
57
srcs = [
@@ -23,4 +25,3 @@ py_test(
2325
":test_util",
2426
],
2527
)
26-
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
load("@rules_python//python:defs.bzl", "py_library")
2+
3+
# gazelle:python_resolve_sibling_imports enabled

gazelle/python/testdata/simple_test_with_conftest/BUILD.out

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
load("@rules_python//python:defs.bzl", "py_library", "py_test")
22

3+
# gazelle:python_resolve_sibling_imports enabled
4+
35
py_library(
46
name = "simple_test_with_conftest",
57
srcs = [
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
# gazelle:python_generation_mode project
2+
# gazelle:python_resolve_sibling_imports enabled

gazelle/python/testdata/subdir_sources/BUILD.out

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
load("@rules_python//python:defs.bzl", "py_binary")
33

44
# gazelle:python_generation_mode project
5+
# gazelle:python_resolve_sibling_imports enabled
56

67
py_binary(
78
name = "subdir_sources_bin",

0 commit comments

Comments
 (0)