CI: add a python linter job with Ruff

Same-ish as Flake8 but faster, let's see how that goes.
This commit is contained in:
Peter Hutterer 2023-02-15 08:44:27 +10:00
parent 90f450787a
commit 83f3789954
2 changed files with 26 additions and 0 deletions

View file

@ -139,6 +139,19 @@ python-black:
script:
- black --check --diff .
# Lint with Ruff
#
python-ruff:
extends:
- .fdo.ci-fairy
stage: prep
before_script:
- python3 -m venv venv
- source venv/bin/activate
- pip3 install ruff
script:
- ruff check --ignore E741,E501 .
#
# Build distribution-specific images used by the jobs in the build stage
#

View file

@ -149,6 +149,19 @@ python-black:
script:
- black --check --diff .
# Lint with Ruff
#
python-ruff:
extends:
- .fdo.ci-fairy
stage: prep
before_script:
- python3 -m venv venv
- source venv/bin/activate
- pip3 install ruff
script:
- ruff check --ignore E741,E501 .
#
# Build distribution-specific images used by the jobs in the build stage
#