Skip to content

Commit 55c3a45

Browse files
pb8owearyzen
authored andcommitted
style(python): only check directories that have python files in them
This helps when the workspace includes files not commited in the repo. Signed-off-by: Pablo Barbáchano <[email protected]>
1 parent c21ad0a commit 55c3a45

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/integration_tests/style/test_python.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@ def test_python_style(formatter):
1414
Test that python code passes `formatter`
1515
"""
1616
run(
17-
f"{formatter} --check --diff . ..",
17+
f"{formatter} --check --diff tests tools .buildkite",
1818
stdout=sys.stdout,
1919
stderr=sys.stderr,
2020
shell=True,
21+
cwd="..",
2122
check=True,
2223
)
2324

0 commit comments

Comments
 (0)