##// END OF EJS Templates
tests: verify that Python scripts are blackened...
Gregory Szorc -
r44090:2d8d4e08 default
parent child Browse files
Show More
@@ -1,5 +1,5 b''
1 1 #require black
2 2
3 3 $ cd $RUNTESTDIR/..
4 $ black --config=black.toml --check --diff `hg files 'set:**.py - mercurial/thirdparty/** - "contrib/python-zstandard/**"'`
4 $ black --config=black.toml --check --diff `hg files 'set:(**.py + grep("^#!.*python")) - mercurial/thirdparty/** - "contrib/python-zstandard/**"'`
5 5
@@ -11,6 +11,7 b' look for python scripts that do not use '
11 11 In tests, enforce $PYTHON and *not* /usr/bin/env python or similar:
12 12 $ testrepohg files 'set:grep(r"#!.*?python") and **/*.t' \
13 13 > -X tests/test-check-execute.t \
14 > -X tests/test-check-format.t \
14 15 > -X tests/test-check-module-imports.t \
15 16 > -X tests/test-check-pyflakes.t \
16 17 > -X tests/test-check-shbang.t
General Comments 0
You need to be logged in to leave comments. Login now