Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
workflow
pypushflow
Commits
e74daedb
Commit
e74daedb
authored
Sep 06, 2021
by
Wout De Nolf
Browse files
style testing in CI
parent
3ebd7ec6
Pipeline
#54693
passed with stages
in 44 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
e74daedb
stages
:
-
style
-
test
flake8
:
stage
:
style
image
:
"
docker-registry.esrf.fr/dau/ewoks:python_3.7"
before_script
:
-
pip install flake8
script
:
-
flake8
black
:
stage
:
style
image
:
"
docker-registry.esrf.fr/dau/ewoks:python_3.7"
before_script
:
-
pip install black
script
:
-
LC_ALL=C.UTF-8 black --check --safe .
test
:
stage
:
test
image
:
python
:
3.
6
image
:
"
docker-registry.esrf.fr/dau/ewoks:
python
_
3.
7"
before_script
:
-
pip install pytest-cov
-
pip install .[test]
script
:
-
pytest --cov=./ .
only
:
refs
:
-
main
-
merge_requests
setup.cfg
View file @
e74daedb
...
...
@@ -25,3 +25,13 @@ mx =
pymongo
test =
pytest
mongita
black
# E501 (line too long) ignored for now
# E203 and W503 incompatible with black formatting (https://black.readthedocs.io/en/stable/compatible_configs.html#flake8)
[flake8]
ignore = E501, E203, W503
max-line-length = 88
exclude =
.eggs
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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