From ac47444ccde9cd0ed142ac516d2c1790a885c853 Mon Sep 17 00:00:00 2001 From: fspreck <f.spreckelsen@indiscale.com> Date: Tue, 12 Mar 2024 15:52:29 +0100 Subject: [PATCH] PIPELINE: Add linting stage --- .gitlab-ci.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b2ecd97c..66302c18 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -279,7 +279,7 @@ cert: - cd .docker - CAOSHOSTNAME=caosdb-server ./cert.sh -style: +code-style: tags: [docker] stage: style image: $CI_REGISTRY_IMAGE @@ -290,6 +290,17 @@ style: - autopep8 -r --diff --exit-code . 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 # 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 -- GitLab