run_tests: add file header checker for licensing blocks
Change-Id: Ic0bfa3b03e2ba46d565a5bc2c1b7a7463b7dca2c
This commit is contained in:
parent
ec923991bd
commit
a38a8a27bd
3 changed files with 167 additions and 4 deletions
10
run_tests
10
run_tests
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue