Update flake8 excluded files
This should make it easier to run flake8 on all Python files but don't check certain directories. Before we needed to specify the files and directories to check more explicitly. Using the config file is easier to reproduce in different useage scenarios than having to always specify the same file patterns.
This commit is contained in:
Родитель
fb2a49177e
Коммит
a37aefdb29
2
tasks.py
2
tasks.py
|
@ -326,7 +326,7 @@ def lint_python(ctx):
|
|||
@task
|
||||
def flake8(ctx):
|
||||
"""Run flake8."""
|
||||
pyrun(ctx, "flake8 tasks.py network-api")
|
||||
pyrun(ctx, "flake8 .")
|
||||
|
||||
|
||||
@task
|
||||
|
|
2
tox.ini
2
tox.ini
|
@ -1,4 +1,4 @@
|
|||
[flake8]
|
||||
exclude=*migrations*
|
||||
extend-exclude=*migrations*,dockerpythonvenv/*,network-api/media/*,network-api/staticfiles/*
|
||||
extend-ignore = E203
|
||||
max-line-length=119
|
||||
|
|
Загрузка…
Ссылка в новой задаче