Skip to content

Commit 13af76b

Browse files
committed
pants: add flake8 lint backend
1 parent 0d94df3 commit 13af76b

File tree

7 files changed

+14
-0
lines changed

7 files changed

+14
-0
lines changed

pants.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ backend_packages = [
1313
"pants.backend.experimental.python", # activates twine `publish` support
1414
"pants.backend.python.mixed_interpreter_constraints",
1515
"pants.backend.python.lint.black",
16+
"pants.backend.python.lint.flake8",
1617

1718
# shell
1819
"pants.backend.shell",
@@ -85,3 +86,10 @@ root_patterns = [
8586
[black]
8687
lockfile = "lockfiles/black.lock"
8788
version = "black==22.3.0"
89+
90+
[flake8]
91+
extra_requirements = [
92+
# license check plugin
93+
"st2flake8==0.1.0", # TODO: remove in favor of regex-lint
94+
]
95+
config = "lint-configs/python/.flake8"

st2actions/bin/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
python_sources(
22
sources=["st2*"],
3+
skip_flake8=True,
34
)
45

56
shell_sources(

st2api/bin/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
python_sources(
22
sources=["st2*"],
3+
skip_flake8=True,
34
)

st2auth/bin/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
python_sources(
22
sources=["st2*"],
3+
skip_flake8=True,
34
)

st2common/bin/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
python_sources(
22
sources=["*.py", "st2*", "!st2ctl", "!st2-self-check", "!st2-run-pack-tests"],
3+
skip_flake8=True,
34
)
45

56
shell_sources(

st2reactor/bin/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
python_sources(
22
sources=["st2*"],
3+
skip_flake8=True,
34
)

st2stream/bin/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
python_sources(
22
sources=["st2*"],
3+
skip_flake8=True,
34
)

0 commit comments

Comments
 (0)