From c1c072bcffd103b0e8525eaf64a8288366b2bf19 Mon Sep 17 00:00:00 2001 From: Moul <moul@moul.re> Date: Wed, 12 May 2021 18:39:57 +0200 Subject: [PATCH] [ci] Run lint job with pylint from the image Disable E0401 (import-error) which checks for run time dependencies not found outside of Poetry virtual environment Move lint job to 'checks' stage since it's going faster without dev dependencies installation --- .gitlab-ci.yml | 3 +-- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d75401d..e155c36 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -58,10 +58,9 @@ type: lint: extends: - .code_changes - stage: tests + stage: checks tags: [redshift] script: - - poetry install - make pylint .tests: diff --git a/pyproject.toml b/pyproject.toml index f88ed18..926c400 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -49,6 +49,6 @@ profile = "black" src_paths = ["duniterpy", "tests", "examples"] [tool.pylint.messages_control] -disable = "C,R0401,R0801,R0902,R0903,R0904,R0912,R0913,R0914,R0915,W0613" +disable = "C,E0401,R0401,R0801,R0902,R0903,R0904,R0912,R0913,R0914,R0915,W0613" enable = "C0121,C0202,C0321" jobs = 0 -- GitLab