Lint/pylint: update to the latest upstream version v3.3.1

Update pylint to the latest upstream version, to fix a false positive
with Python 3.13, that was resolved in `astroid` dependency in version
`3.3.5`. In order to update the dependency, the `pylint` version itself
needs to be bumped to at least version `3.0.0`.

The error was:
test/run/test_stages.py:21:0: E0611: No name 'Mapping' in module 'collections.abc' (no-name-in-module)

More details: https://github.com/pylint-dev/pylint/issues/10000

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
Tomáš Hozza 2024-11-20 11:21:52 +01:00 committed by Michael Vogt
parent 8b62e9d901
commit c44657377e

View file

@ -56,7 +56,11 @@ commands =
[testenv:pylint]
deps =
pylint==3.0.2
pylint==3.3.1
# Use astroid of at least v3.3.5 to fix the following error with Python 3.13:
# test/run/test_stages.py:21:0: E0611: No name 'Mapping' in module 'collections.abc' (no-name-in-module)
# More details: https://github.com/pylint-dev/pylint/issues/10000
astroid>=3.3.5
commands =
bash -c 'python -m pylint --ignore-patterns {env:LINTABLES_EXCLUDES_RE} {env:LINTABLES}'