Skip to content

Commit a33e9fc

Browse files
committed
CI: downgrade Python lint task to Ubuntu 22.04
Ubuntu 22.10 was EOLed on 2023-07-26.¹ The obvious thing would be to _upgrade_ to Ubuntu 23.04. But we run into the new Python policy Ubuntu has instituted (see 0050eac). We could comply with this or move this task to Fedora, but then we find that Pylint does not work with Python 3.11² which is what is in use on both Ubuntu 23.04 and all supported Fedora releases. So downgrading to Ubuntu 22.04 seems like the simplest options for an environment that is still in its support window. ¹ https://wiki.ubuntu.com/Releases ² Discussed in the comments of pylint-dev/pylint#6535. Symptoms are complaints of `os` members not existing.
1 parent 8741e9f commit a33e9fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.gitlab-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1353,10 +1353,10 @@ lint_html:
13531353
- tags
13541354

13551355
lint_python:
1356-
image: "$CI_REGISTRY_IMAGE/ubuntu-22.10:$CI_COMMIT_SHA"
1356+
image: "$CI_REGISTRY_IMAGE/ubuntu-22.04:$CI_COMMIT_SHA"
13571357
stage: test
13581358
needs:
1359-
- docker_build_ubuntu-22.10
1359+
- docker_build_ubuntu-22.04
13601360
script:
13611361
- git ls-files -z -- '**.py' | xargs -0 -- python3 -m pylint --rcfile=.pylintrc --disable=fixme
13621362
- git ls-files -z -- '**.py' | xargs -0 -- python3 -m black --check

0 commit comments

Comments
 (0)