Skip to content

Commit fbb8af8

Browse files
committed
Flake8
1 parent b1db3c0 commit fbb8af8

File tree

4 files changed

+6
-10
lines changed

4 files changed

+6
-10
lines changed

django_coverage_plugin/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""Django Template Coverage Plugin"""
22

3-
from .plugin import DjangoTemplatePlugin, DjangoTemplatePluginException
3+
from .plugin import DjangoTemplatePlugin
4+
from .plugin import DjangoTemplatePluginException # noqa
45

56

67
def coverage_init(reg, options):

django_coverage_plugin/plugin.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
# Django 1.4 didn't have VerbatimNode
2222
VerbatimNode = None
2323

24+
2425
class DjangoTemplatePluginException(Exception):
2526
"""Used for any errors from the plugin itself."""
2627
pass

tests/plugin_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ def test_thing(self):
212212
else:
213213
return unittest.skip("Django version must be newer")
214214

215+
215216
def django_stop_at(*needed_version):
216217
"""A decorator for tests to require a maximum version of Django.
217218

tox.ini

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,21 +37,14 @@ passenv = *
3737

3838
[testenv:check]
3939
deps =
40-
pep8
41-
pyflakes
40+
flake8
4241

4342
commands =
44-
pyflakes setup.py django_coverage_plugin tests
45-
pep8 . --exclude=.tox
43+
flake8 --max-line-length=100 setup.py django_coverage_plugin tests
4644

4745
[testenv:doc]
4846
deps =
4947
sphinx
5048

5149
commands =
5250
rst2html.py --strict README.rst README.html
53-
54-
[pep8]
55-
# E402: imports must be at top of file.
56-
# The rest are the default ignored warnings.
57-
ignore = E402,E123,E133,E226,E241,E242

0 commit comments

Comments
 (0)