Huge re-org to match normal python project structure
This commit is contained in:
parent
b263e20ca2
commit
92bc50396b
22 changed files with 35 additions and 47 deletions
15
tests/test.py
Normal file
15
tests/test.py
Normal 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)
|
Loading…
Add table
Add a link
Reference in a new issue