1
0
Fork 0

run_tests: add file header checker for licensing blocks

Change-Id: Ic0bfa3b03e2ba46d565a5bc2c1b7a7463b7dca2c
This commit is contained in:
Mike Frysinger 2025-08-21 10:40:51 -04:00
parent ec923991bd
commit a38a8a27bd
3 changed files with 167 additions and 4 deletions

View file

@ -102,6 +102,15 @@ def run_isort():
).returncode
def run_check_metadata():
"""Returns the exit code from check-metadata."""
return subprocess.run(
[sys.executable, "release/check-metadata.py"],
check=False,
cwd=ROOT_DIR,
).returncode
def run_update_manpages() -> int:
"""Returns the exit code from release/update-manpages."""
# Allow this to fail on CI, but not local devs.
@ -124,6 +133,7 @@ def main(argv):
run_black,
run_flake8,
run_isort,
run_check_metadata,
run_update_manpages,
)
# Run all the tests all the time to get full feedback. Don't exit on the