summaryrefslogtreecommitdiff
path: root/tasks.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2018-12-06 13:40:58 -0500
committerKevin Van Brunt <kmvanbrunt@gmail.com>2018-12-06 13:40:58 -0500
commit5b9281f6dfb55d436e6a19ae41af5a8590fbaed7 (patch)
tree6b4d269801df6fb2634af3003fe28a29b010008f /tasks.py
parent23970dfdca765992157b8089f3a34f7fd4fa4f10 (diff)
parentea182bbea386288b1acfbc35c99243a457ff1036 (diff)
downloadcmd2-git-5b9281f6dfb55d436e6a19ae41af5a8590fbaed7.tar.gz
Merge branch 'master' into history
Diffstat (limited to 'tasks.py')
-rw-r--r--tasks.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tasks.py b/tasks.py
index 46cd57c1..d5f5976b 100644
--- a/tasks.py
+++ b/tasks.py
@@ -1,5 +1,6 @@
#
# coding=utf-8
+# flake8: noqa E302
"""Development related tasks to be run with 'invoke'.
Make sure you satisfy the following Python module requirements if you are trying to publish a release to PyPI:
@@ -226,3 +227,11 @@ def pypi_test(context):
"Build and upload a distribution to https://test.pypi.org"
context.run('twine upload --repository-url https://test.pypi.org/legacy/ dist/*')
namespace.add_task(pypi_test)
+
+
+# Flake8 - linter and tool for style guide enforcement and linting
+@invoke.task
+def flake8(context):
+ "Run flake8 linter and tool for style guide enforcement"
+ context.run("flake8 --ignore=E252 --max-complexity=31 --max-line-length=127 --show-source --statistics")
+namespace.add_task(flake8)