summaryrefslogtreecommitdiffstats
path: root/run_tests
diff options
context:
space:
mode:
Diffstat (limited to 'run_tests')
-rwxr-xr-xrun_tests10
1 files changed, 9 insertions, 1 deletions
diff --git a/run_tests b/run_tests
index d61308f6..7307f827 100755
--- a/run_tests
+++ b/run_tests
@@ -27,8 +27,16 @@ ROOT_DIR = os.path.dirname(os.path.realpath(__file__))
27 27
28def run_black(): 28def 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