Setup flake8 exclude in setup.cfg

This commit is contained in:
Thomas Adamcik 2015-03-02 00:29:46 +01:00
parent 0634de6e28
commit fdab423a49
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
[flake8]
application-import-names = mopidy,tests
exclude = .git,.tox,build,js
exclude = .git,.tox,build,js,tmp
# Ignored flake8 warnings:
# - E402 module level import not at top of file
ignore = E402

View File

@ -28,7 +28,7 @@ def test(path=None, coverage=False, watch=False, warn=False):
def lint(watch=False, warn=False):
if watch:
return watcher(lint)
run('flake8 --exclude=tmp,.git,__pycache__', warn=warn)
run('flake8', warn=warn)
@task