Skip to content

TracyWebTech/django-test-pep8

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django Test PEP8

Django APP to run PEP8 tests in your project.

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

Releases

No releases published

Packages

No packages published

Languages