Django APP to run PEP8 tests in your project. Updated for python3 and using pycodestyle as pep8 project is due to be deprecated
This app uses pep8 package to run tests.
To install using pip
pip install django-test-pep8
To install using easy_install
easy_install django-test-pep8
INSTALLED_APPS = (
# your apps,
test_pep8,
)
PROJECT_DIR = os.path.dirname(__file__)
TEST_PEP8_DIRS = [os.path.dirname(PROJECT_DIR), ]
TEST_PEP8_EXCLUDE = ['migrations', ] # Exclude this paths from tests
TEST_PEP8_IGNORE = ['E128', ] # Ignore this tests
To run all tests
python manage.py test
To run pep8 tests only
python manage.py test test_pep8