diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2018-12-06 12:29:29 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-06 12:29:29 -0500 |
commit | ea182bbea386288b1acfbc35c99243a457ff1036 (patch) | |
tree | d3641a78217bbb79cbe039f80648b44b2fbdd0a4 /tasks.py | |
parent | 709af49a7f161c98260cc5ddda736987fb0f1f23 (diff) | |
parent | 9d90c1eb57c62ba1fcd8e470fa2e27248e1e9064 (diff) | |
download | cmd2-git-ea182bbea386288b1acfbc35c99243a457ff1036.tar.gz |
Merge pull request #607 from python-cmd2/flake8
Fix flake8 issues
Diffstat (limited to 'tasks.py')
-rw-r--r-- | tasks.py | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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) |