There was an error while loading. Please reload this page.
1 parent 1a01ec3 commit 9d44053Copy full SHA for 9d44053
1 file changed
tests/test_codestyle.py
@@ -10,11 +10,15 @@
10
11
class BaseTests(unittest.TestCase):
12
def test_codestyle(self):
13
- args = "python -m black --check -l 100 *.py etc/ src/ tests/ docs"
+ args = "venv/bin/black --check -l 100 setup.py etc src tests docs"
14
try:
15
subprocess.check_output(args.split())
16
- except Exception as e:
+ except subprocess.CalledProcessError as e:
17
+ print("===========================================================")
18
+ print(e.output)
19
20
raise Exception(
21
"Black style check failed; please format the code using:\n"
- " python -m black -l 100 *.py etc/ src/ tests/ docs"
22
+ " python -m black -l 100 setup.py etc src tests docs",
23
+ e.output,
24
) from e
0 commit comments