Skip to content

paulj3000/django-test-pep8

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django Test PEP8

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.

Installation

Install package

To install using pip

pip install django-test-pep8

To install using easy_install

easy_install django-test-pep8

Add test_pep8 to your settings.INSTALLED_APPS

INSTALLED_APPS = (
    # your apps,
    test_pep8,
)

Add your project base path to settings.TEST_PEP8_DIRS

PROJECT_DIR = os.path.dirname(__file__)
TEST_PEP8_DIRS = [os.path.dirname(PROJECT_DIR), ]

Other options

TEST_PEP8_EXCLUDE = ['migrations', ] # Exclude this paths from tests
TEST_PEP8_IGNORE = ['E128', ] # Ignore this tests

Running Tests

To run all tests

python manage.py test

To run pep8 tests only

python manage.py test test_pep8

About

PEP8 Tests to Django projects

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%