Skip to content
Snippets Groups Projects
Commit ac47444c authored by Florian Spreckelsen's avatar Florian Spreckelsen
Browse files

PIPELINE: Add linting stage

parent dde1d2a7
No related branches found
No related tags found
2 merge requests!162DOC WIP: Tutorial: Single structured file,!161F pylint
Pipeline #48442 failed
...@@ -279,7 +279,7 @@ cert: ...@@ -279,7 +279,7 @@ cert:
- cd .docker - cd .docker
- CAOSHOSTNAME=caosdb-server ./cert.sh - CAOSHOSTNAME=caosdb-server ./cert.sh
style: code-style:
tags: [docker] tags: [docker]
stage: style stage: style
image: $CI_REGISTRY_IMAGE image: $CI_REGISTRY_IMAGE
...@@ -290,6 +290,17 @@ style: ...@@ -290,6 +290,17 @@ style:
- autopep8 -r --diff --exit-code . - autopep8 -r --diff --exit-code .
allow_failure: true allow_failure: true
pylint:
tags: [docker]
stage: style
image: $CI_REGISTRY_IMAGE
needs:
-job: build-testenv
optional: true
allow_failure: true
script:
- pylint --unsafe-load-any-extension=y -d all -e E,F src/caoscrawler
# Build the sphinx documentation and make it ready for deployment by Gitlab Pages # Build the sphinx documentation and make it ready for deployment by Gitlab Pages
# Special job for serving a static website. See https://docs.gitlab.com/ee/ci/yaml/README.html#pages # Special job for serving a static website. See https://docs.gitlab.com/ee/ci/yaml/README.html#pages
# Based on: https://gitlab.indiscale.com/caosdb/src/caosdb-pylib/-/ci/editor?branch_name=main # Based on: https://gitlab.indiscale.com/caosdb/src/caosdb-pylib/-/ci/editor?branch_name=main
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment