diff options
Diffstat (limited to 'run_tests')
| -rwxr-xr-x | run_tests | 10 |
1 files changed, 9 insertions, 1 deletions
| @@ -27,8 +27,16 @@ ROOT_DIR = os.path.dirname(os.path.realpath(__file__)) | |||
| 27 | 27 | ||
| 28 | def run_black(): | 28 | def run_black(): |
| 29 | """Returns the exit code from black.""" | 29 | """Returns the exit code from black.""" |
| 30 | # Black by default only matches .py files. We have to list standalone | ||
| 31 | # scripts manually. | ||
| 32 | extra_programs = [ | ||
| 33 | "repo", | ||
| 34 | "run_tests", | ||
| 35 | "release/update-manpages", | ||
| 36 | ] | ||
| 30 | return subprocess.run( | 37 | return subprocess.run( |
| 31 | [sys.executable, "-m", "black", "--check", ROOT_DIR], check=False | 38 | [sys.executable, "-m", "black", "--check", ROOT_DIR] + extra_programs, |
| 39 | check=False, | ||
| 32 | ).returncode | 40 | ).returncode |
| 33 | 41 | ||
| 34 | 42 | ||
