summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2019-07-06 16:00:48 -0400
committerTodd Leonhardt <todd.leonhardt@gmail.com>2019-07-06 16:00:48 -0400
commit1c9cd1dd698d159e45c0c348d64a315ddd00652c (patch)
treef4aba102b2725f1894087872a452c99048de49fd
parenta967229a56803aa6c3a19915febb8bcb689c9dc3 (diff)
downloadcmd2-git-1c9cd1dd698d159e45c0c348d64a315ddd00652c.tar.gz
Updated flake8 invoke task to exclude unecessary directories to prevent it taking a long time when using a venv
-rw-r--r--tasks.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tasks.py b/tasks.py
index 4d5a5b64..c38419ec 100644
--- a/tasks.py
+++ b/tasks.py
@@ -233,5 +233,5 @@ namespace.add_task(pypi_test)
@invoke.task
def flake8(context):
"Run flake8 linter and tool for style guide enforcement"
- context.run("flake8 --ignore=E252,W503 --max-complexity=31 --max-line-length=127 --show-source --statistics")
+ context.run("flake8 --ignore=E252,W503 --max-complexity=31 --max-line-length=127 --show-source --statistics --exclude=.git,__pycache__,.tox,.eggs,*.egg,.venv,.idea,.pytest_cache,.vscode,build,dist,htmlcov")
namespace.add_task(flake8)