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