Skip to content

Commit 80f0547

Browse files
authored
Pants plugins: pack_metadata - python imports rules (#6260)
2 parents 2271db0 + b3d8c4c commit 80f0547

File tree

23 files changed

+1433
-11
lines changed

23 files changed

+1433
-11
lines changed

CHANGELOG.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Added
6969
working on StackStorm, improve our security posture, and improve CI reliability thanks in part
7070
to pants' use of PEX lockfiles. This is not a user-facing addition.
7171
#6118 #6141 #6133 #6120 #6181 #6183 #6200 #6237 #6229 #6240 #6241 #6244 #6251 #6253
72-
#6254 #6258 #6259
72+
#6254 #6258 #6259 #6260
7373
Contributed by @cognifloyd
7474
* Build of ST2 EL9 packages #6153
7575
Contributed by @amanda11

contrib/chatops/BUILD

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
__defaults__(all=dict(inject_pack_python_path=True))
2+
13
pack_metadata(
24
name="metadata",
35
)

contrib/core/BUILD

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
__defaults__(all=dict(inject_pack_python_path=True))
2+
13
pack_metadata(
24
name="metadata",
35
)

contrib/debug/BUILD

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
__defaults__(all=dict(inject_pack_python_path=True))
2+
13
pack_metadata(
24
name="metadata",
35
)

contrib/default/BUILD

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
__defaults__(all=dict(inject_pack_python_path=True))
2+
13
pack_metadata(
24
name="metadata",
35
)

contrib/examples/BUILD

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
__defaults__(all=dict(inject_pack_python_path=True))
2+
13
pack_metadata(
24
name="metadata",
35
)

contrib/examples/actions/pythonactions/isprime.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515

1616
import math
1717

18-
from environ import get_environ
18+
# TODO: extend pants and pants-plugins/pack_metadata to add lib dirs extra_sys_path for pylint
19+
from environ import get_environ # pylint: disable=E0401
1920
from st2common.runners.base_action import Action
2021

2122

contrib/hello_st2/BUILD

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
__defaults__(all=dict(inject_pack_python_path=True))
2+
13
pack_metadata(
24
name="metadata",
35
)

contrib/linux/BUILD

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
__defaults__(all=dict(inject_pack_python_path=True))
2+
13
pack_metadata(
24
name="metadata",
35
)

contrib/packs/BUILD

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
__defaults__(all=dict(inject_pack_python_path=True))
2+
13
pack_metadata(
24
name="metadata",
35
)

0 commit comments

Comments
 (0)