From 3841c3011f3efd890e24017d7bbb6a7745066144 Mon Sep 17 00:00:00 2001 From: HgO Date: Sat, 13 Aug 2022 14:08:18 +0200 Subject: [PATCH] merge linting jobs --- .gitlab-ci.yml | 32 ++------------------------------ 1 file changed, 2 insertions(+), 30 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4c6184c..02a86ee 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -41,37 +41,13 @@ install: interruptible: true needs: [] -isort linting: +linting: extends: .pip cache template image: python:3.10-alpine stage: quality script: - isort -c --df . - cache: - policy: pull - interruptible: true - needs: - - job: install - artifacts: false - -flake8 linting: - extends: .pip cache template - image: python:3.10-alpine - stage: quality - script: - flake8 --count --show-source --statistics . - cache: - policy: pull - interruptible: true - needs: - - job: install - artifacts: false - -black linting: - extends: .pip cache template - image: python:3.10-alpine - stage: quality - script: - black --check --diff . cache: policy: pull @@ -100,9 +76,5 @@ tests: coverage: '/^TOTAL\s+\d+\s+\d+\s+(\d+\.\d+\%)$/' interruptible: true needs: - - job: isort linting - artifacts: false - - job: flake8 linting - artifacts: false - - job: black linting + - job: linting artifacts: false