mirror of
https://gitlab.freedesktop.org/libinput/libei.git
synced 2026-01-28 11:50:37 +01:00
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:
parent
90f450787a
commit
83f3789954
2 changed files with 26 additions and 0 deletions
|
|
@ -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
|
||||
#
|
||||
|
|
|
|||
|
|
@ -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
|
||||
#
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue