Huge re-org to match normal python project structure

This commit is contained in:
Marc Di Luzio 2024-08-14 22:42:53 +01:00
parent b263e20ca2
commit 92bc50396b
22 changed files with 35 additions and 47 deletions

15
tests/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", "matchy/", "tests/"])
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)