bengrunfeld / example-python-django-crud-app

Example Python Django CRUD application for Deis
3 stars 4 forks source link

Make app PEP8 Compliant #3

Open bengrunfeld opened 10 years ago

bengrunfeld commented 10 years ago

Make app PEP8 compliant.

bacongobbler commented 10 years ago

use flake8 to test for PEP8 compatibility.

Alternatively, you can use tox to help automate your test suite:

$ cat tox.ini
[tox]
envlist = py27, pep8
skipsdist = True

[testenv]
sitepackages = True
deps = -r{toxinidir}/requirements.txt
commands = python manage.py test

[testenv:pep8]
commands = flake8 {toxinidir}

[flake8]
ignore = H102,H233,H304,H802,H803
exclude = .tox,.git