From fdab423a496be0349ad94e9e78493c470c61cfa3 Mon Sep 17 00:00:00 2001 From: Thomas Adamcik Date: Mon, 2 Mar 2015 00:29:46 +0100 Subject: [PATCH] Setup flake8 exclude in setup.cfg --- setup.cfg | 2 +- tasks.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.cfg b/setup.cfg index 834ca945..95211279 100644 --- a/setup.cfg +++ b/setup.cfg @@ -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 diff --git a/tasks.py b/tasks.py index 03249481..7b5692e3 100644 --- a/tasks.py +++ b/tasks.py @@ -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