Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mathias Stelzer
hods
Commits
154934bc
Verified
Commit
154934bc
authored
3 years ago
by
Mathias Stelzer
Browse files
Options
Download
Email Patches
Plain Diff
move flake8 task to tox and ci-templates updates
parent
ddaef48e
master
No related merge requests found
Pipeline
#1049
passed with stage
in 18 minutes and 25 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitlab-ci.yml
+7
-6
.gitlab-ci.yml
lint_requirements.txt
+0
-23
lint_requirements.txt
tasks.py
+0
-7
tasks.py
tox.ini
+29
-0
tox.ini
with
36 additions
and
36 deletions
+36
-36
.gitlab-ci.yml
+
7
-
6
View file @
154934bc
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
lint_requirements.txt
deleted
100644 → 0
+
0
-
23
View file @
ddaef48e
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
This diff is collapsed.
Click to expand it.
tasks.py
+
0
-
7
View file @
154934bc
...
...
@@ -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"""
...
...
This diff is collapsed.
Click to expand it.
tox.ini
+
29
-
0
View file @
154934bc
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help