Skip to content

Commit 1a01ec3

Browse files
committed
Use explicit directories for style checks
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
1 parent fcb402d commit 1a01ec3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/test_codestyle.py

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

1111
class BaseTests(unittest.TestCase):
1212
def test_codestyle(self):
13-
args = "python -m black --check -l 100 ."
13+
args = "python -m black --check -l 100 *.py etc/ src/ tests/ docs"
1414
try:
1515
subprocess.check_output(args.split())
1616
except Exception as e:
1717
raise Exception(
18-
"Black style check failed; please format the code using: "
19-
"python -m black --check -l 100"
18+
"Black style check failed; please format the code using:\n"
19+
" python -m black -l 100 *.py etc/ src/ tests/ docs"
2020
) from e

0 commit comments

Comments
 (0)