Added pep8 style tests
This commit is contained in:
parent
cd88926475
commit
f227727c74
@ -5,4 +5,4 @@ pytest:
|
||||
# - python -m venv .venv
|
||||
# - source /bin/activate
|
||||
- pip install -r requirements.txt
|
||||
- pytest
|
||||
- pytest --disable-warnings
|
@ -23,3 +23,4 @@ ujson==5.8.0
|
||||
virtualenv==20.24.6
|
||||
waitress==2.1.2
|
||||
Werkzeug==3.0.1
|
||||
pycodestyle==2.11.1
|
9
tests/general/test_pep8.py
Normal file
9
tests/general/test_pep8.py
Normal file
@ -0,0 +1,9 @@
|
||||
import pycodestyle
|
||||
|
||||
# Tests files to ensure they conform to pep8 standards
|
||||
def test_pep8_conformance():
|
||||
"""Test that we conform to PEP8."""
|
||||
pep8style = pycodestyle.StyleGuide()
|
||||
dirs = ["./controllers", "./models", "./scripts", "./tests"]
|
||||
result = pep8style.check_files(dirs)
|
||||
assert result.total_errors == 0
|
Loading…
Reference in New Issue
Block a user