Skip to content

Commit

Permalink
Lint/pylint: update to the latest upstream version v3.3.1
Browse files Browse the repository at this point in the history
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: pylint-dev/pylint#10000

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
  • Loading branch information
thozza committed Nov 21, 2024
1 parent e9b0185 commit 334a325
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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}'
Expand Down

0 comments on commit 334a325

Please sign in to comment.