diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2023-12-20 14:23:01 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2023-12-20 14:30:11 +1000 |
commit | 3998ddde5bda96538fadd7de42a63f0b7c43d85d (patch) | |
tree | 168ac1082bfefbb177d7529c5ecf6c44ef44204f /.gitlab-ci.yml | |
parent | 6cd55ec6ecbdd25d2ec13ccae60cf67eb47d162f (diff) |
CI: drop black, use ruff-format instead
black is getting increasingly more difficult to use in the CI across
distribution versions (thanks to Python's messy packaging) so let's
replace it with ruff format which produces largely the same results.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e6a0635e..a73725e2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -32,7 +32,7 @@ variables: # Changing the tag will rebuild the container images. The value is just a # string, but we use the date for human benefits. - FDO_DISTRIBUTION_TAG: '2022-01-20.0' + FDO_DISTRIBUTION_TAG: '2023-12-20.0' # xkbcommon: needed to share artifacts between jobs XKBCOMMON_DIR: 'libxkbcommon' @@ -57,7 +57,7 @@ container-prep: # minimal set of packages required to build xkeyboard-config. BASE_PACKAGES: 'xorg-util-macros gettext pkg-config gcc grep m4 python meson ninja git diffutils' # extra packages we need for various tests - EXTRA_PACKAGES: 'tree libxml2 bison xorg-xkbcomp python-pytest python-libevdev python-yaml yq libxkbcommon libxslt python-pycountry' + EXTRA_PACKAGES: 'tree libxml2 bison xorg-xkbcomp python-pytest python-libevdev python-yaml yq libxkbcommon libxslt python-pycountry ruff' FDO_DISTRIBUTION_PACKAGES: $BASE_PACKAGES $EXTRA_PACKAGES @@ -118,16 +118,13 @@ check-commit: # # Format Python code with python-black # -python-black: +ruff-format: extends: - - .fdo.ci-fairy - stage: sanity - before_script: - - python3 -m venv venv - - source venv/bin/activate - - pip3 install black + - .default_setup + stage: test script: - - black --check --diff . + - ruff format --line-length=88 --check --diff . + needs: ['container-prep'] meson_install: extends: .meson_build |