diff options
Diffstat (limited to 'tasks.py')
-rw-r--r-- | tasks.py | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -227,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) |