Reformat with black

This commit is contained in:
Pim van Pelt
2025-08-03 11:03:38 +02:00
parent 81c7f9c9bd
commit c1d70cd9b6
8 changed files with 239 additions and 209 deletions

View File

@@ -17,16 +17,12 @@ def run_tests(args=None):
"""Run pytest with optional arguments"""
# Use python3 explicitly for compatibility
cmd = ["python3", "-m", "pytest"]
if args:
cmd.extend(args)
else:
cmd.extend([
"tests/",
"-v",
"--tb=short"
])
cmd.extend(["tests/", "-v", "--tb=short"])
try:
result = subprocess.run(cmd, check=True)
return result.returncode
@@ -45,10 +41,10 @@ def main():
args = sys.argv[1:]
else:
args = None
exit_code = run_tests(args)
sys.exit(exit_code)
if __name__ == "__main__":
main()
main()