Skip to content

Commit 325ebf6

Browse files
Upgrade pylint to 4.0.0, add mypy to the allowlist
1 parent ec39d04 commit 325ebf6

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

astroid/interpreter/_import/util.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ def is_namespace(modname: str) -> bool:
8383

8484
# Repair last_submodule_search_locations
8585
if last_submodule_search_locations:
86-
# pylint: disable=unsubscriptable-object
8786
last_item = last_submodule_search_locations[-1]
8887
# e.g. for failure example above, add 'a/b' and keep going
8988
# so that find_spec('a.b.c', path=['a', 'a/b']) succeeds

pylintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ unsafe-load-any-extension=no
4242
# A comma-separated list of package or module names from where C extensions may
4343
# be loaded. Extensions are loading into the active Python interpreter and may
4444
# run arbitrary code
45-
extension-pkg-whitelist=
45+
extension-pkg-whitelist=mypy
4646

4747
# Minimum supported python version
4848
py-version = 3.10.0

requirements_dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
# Tools used during development, prefer running these with pre-commit
44
black
55
pre-commit
6-
pylint>=3.2.7
6+
pylint>=4.0.0
77
ruff

tests/test_raw_building.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
from __future__ import annotations
1212

13-
import _io
13+
import _io # pylint: disable=wrong-import-order
1414
import logging
1515
import os
1616
import sys

0 commit comments

Comments
 (0)