Skip to content
Snippets Groups Projects
Verified Commit a533babb authored by Lars Bilke's avatar Lars Bilke
Browse files

Added py_format job.

parent a66062d8
No related tags found
1 merge request!2CI with Python template
Pipeline #187498 passed with warnings with stage
in 2 minutes and 49 seconds
py_format:
extends:
- .python-default
script:
- black --diff --check .
# format is not required for different py versions
parallel:
matrix:
- PYTHON_VERSIONS: "3.10"
Subproject commit b11729bcc1f51e550261b258e236e7bf288e05e2
Subproject commit 76e5c37562775c888c7e3e0608c83f42e82985cd
......@@ -42,3 +42,20 @@ py_lint:
PYTHON_VERSIONS: !reference [.python-versions, versions]
allow_failure:
exit_codes: 1
py_format:
before_script:
- !reference [.ci-setup, script]
- cd $PROJECT_ROOT
- !reference [.python-default, before_script]
- |
if [ $EXIT_CODE -eq 1 ]; then
echo "import os" >> tests/test_base.py
fi
parallel:
matrix:
- PROJECT_ROOT: "test/python-template"
EXIT_CODE: [0, 1]
PYTHON_VERSIONS: "3.10"
allow_failure:
exit_codes: 1
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment