From f346dc9d10a5e7bd214ca019f281e67ef03c776b Mon Sep 17 00:00:00 2001 From: C-Tim <tim@c-hack.de> Date: Thu, 30 Sep 2021 00:53:10 +0200 Subject: [PATCH] CI: Pin pylint major and minor versions Patch-version is not pinned. Fixes: #121 Fixes: #122 Supersedes: !93 --- .gitlab-ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 64dcc0c5..895ff85b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,6 +6,7 @@ variables: PYTHONPATH: deps/ldapalchemy APT_API_URL: https://packages.cccv.de APT_REPO: uffd + PYLINT_PIN: pylint~=2.10.0 before_script: - python3 -V @@ -61,7 +62,7 @@ linter:buster: image: registry.git.cccv.de/uffd/docker-images/buster stage: test script: - - pip3 install pylint-gitlab pylint-flask-sqlalchemy # this force-updates jinja2 and some other packages! + - pip3 install $PYLINT_PIN pylint-gitlab pylint-flask-sqlalchemy # this force-updates jinja2 and some other packages! - python3 -m pylint --exit-zero --rcfile .pylintrc --output-format=pylint_gitlab.GitlabCodeClimateReporter uffd > codeclimate.json - python3 -m pylint --exit-zero --rcfile .pylintrc --output-format=pylint_gitlab.GitlabPagesHtmlReporter uffd > pylint.html - python3 -m pylint --rcfile .pylintrc --output-format=text uffd @@ -77,7 +78,7 @@ linter:bullseye: image: registry.git.cccv.de/uffd/docker-images/bullseye stage: test script: - - pip3 install pylint-gitlab pylint-flask-sqlalchemy # this force-updates jinja2 and some other packages! + - pip3 install $PYLINT_PIN pylint-gitlab pylint-flask-sqlalchemy # this force-updates jinja2 and some other packages! - python3 -m pylint --exit-zero --rcfile .pylintrc --output-format=pylint_gitlab.GitlabCodeClimateReporter uffd > codeclimate.json - python3 -m pylint --exit-zero --rcfile .pylintrc --output-format=pylint_gitlab.GitlabPagesHtmlReporter uffd > pylint.html - python3 -m pylint --rcfile .pylintrc --output-format=text uffd -- GitLab