Setup flake8 exclude in setup.cfg
This commit is contained in:
parent
0634de6e28
commit
fdab423a49
@ -1,6 +1,6 @@
|
|||||||
[flake8]
|
[flake8]
|
||||||
application-import-names = mopidy,tests
|
application-import-names = mopidy,tests
|
||||||
exclude = .git,.tox,build,js
|
exclude = .git,.tox,build,js,tmp
|
||||||
# Ignored flake8 warnings:
|
# Ignored flake8 warnings:
|
||||||
# - E402 module level import not at top of file
|
# - E402 module level import not at top of file
|
||||||
ignore = E402
|
ignore = E402
|
||||||
|
|||||||
2
tasks.py
2
tasks.py
@ -28,7 +28,7 @@ def test(path=None, coverage=False, watch=False, warn=False):
|
|||||||
def lint(watch=False, warn=False):
|
def lint(watch=False, warn=False):
|
||||||
if watch:
|
if watch:
|
||||||
return watcher(lint)
|
return watcher(lint)
|
||||||
run('flake8 --exclude=tmp,.git,__pycache__', warn=warn)
|
run('flake8', warn=warn)
|
||||||
|
|
||||||
|
|
||||||
@task
|
@task
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user