Rewrite bin scripts to python in scripts/ dir

This commit is contained in:
Marc Di Luzio 2024-08-13 18:12:30 +01:00
parent 12727c4d1c
commit 0beb2128bd
9 changed files with 53 additions and 32 deletions

15
scripts/test.py Normal file
View file

@ -0,0 +1,15 @@
import pytest
import sys
from flake8.main.application import Application
# Run flake
app = Application()
ret = app.run(["--max-line-length", "120", "py/", "scripts/"])
flake_exitcode = app.exit_code()
print(flake_exitcode)
# Run pytest
pytest_exitcode = pytest.main()
# Exit based on the two codes
sys.exit(flake_exitcode + pytest_exitcode)