Verified Commit 154934bc authored by Mathias Stelzer's avatar Mathias Stelzer
Browse files

move flake8 task to tox and ci-templates updates

parent ddaef48e
No related merge requests found
Pipeline #1049 passed with stage
in 18 minutes and 25 seconds
Showing with 36 additions and 36 deletions
+36 -36
......@@ -10,17 +10,18 @@ variables:
HODS_DEBUG_HTML: 1
test:
extends: .python-test-matrix
extends:
- .python-test
- .python-tox
script:
- apt-get update
- apt-get install -y rsync
- pip install tox
- tox
lint:
extends: .python-invoke
flake8:
extends: .python-tox
script:
- inv lint
- tox -e flake8
build docs image:
extends: .docker-build
......@@ -37,7 +38,7 @@ docs:
- inv docs --screenshots
coverage:
extends: .python-coverage
extends: .python-coverage-report
needs:
- test
......
......@@ -8,13 +8,6 @@ from invoke import task
__dirname__ = os.path.abspath(os.path.dirname(__file__))
@task
def lint(c):
"""Run the linter (flake8)."""
c.run('pip install -r lint_requirements.txt', echo=True)
c.run('flake8 --count', echo=True)
@task
def docs_screenshots(c):
"""Run the tests and store screenshots in docs directory"""
......
......@@ -119,3 +119,32 @@ commands =
coverage combine
coverage html
coverage report
[testenv:flake8]
skip_install = true
deps =
flake8
flake8-2020
flake8-absolute-import
flake8-broken-line
flake8-builtins
flake8-coding
flake8-commas
flake8-comprehensions
flake8-copyright
flake8-debugger
flake8-docstrings
flake8-eradicate
flake8-executable
flake8-fixme
flake8-import-order
flake8-logging-format
flake8-mutable
flake8-pep3101
flake8-quotes
flake8-rst-docstrings
flake8-string-format
pep8-naming
pycodestyle
commands = flake8 --statistics --count
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment