Skip to content

Commit ddf4fbb

Browse files
committed
Test: Bump pylint and astroid to latest 2.x
1 parent 0b0d677 commit ddf4fbb

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

pylint_plugins/api_models_test.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
import pylint.checkers.typecheck
2121
import pylint.testutils
22+
from pylint.interfaces import Confidence
2223

2324
# merely importing this registers it in astroid
2425
# so parse() will use our predicate and transform functions.
@@ -305,6 +306,13 @@ def test():
305306
msg_id="no-member", # E1101
306307
args=("Instance of", "TestAPI", "missing", ""),
307308
node=assign_node_missing.value,
309+
line=assign_node_missing.lineno,
310+
# fixme: +10 is a workaround, need understand why coloffset
311+
# is 4 but visit_attribute is coloffset 14.
312+
col_offset=assign_node_missing.col_offset+10,
313+
end_line=assign_node_missing.end_lineno,
314+
end_col_offset=assign_node_missing.end_col_offset,
315+
confidence=Confidence(name='INFERENCE', description='Warning based on inference result.'),
308316
)
309317
):
310318
self.checker.visit_attribute(assign_node_missing.value)

test-requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
coverage
22
pep8==1.7.1
33
st2flake8==0.1.0
4-
astroid==2.5.6
5-
pylint==2.8.2
4+
astroid==2.15.8
5+
pylint==2.17.7
66
pylint-plugin-utils>=0.4
77
black==22.3.0
88
pre-commit==2.1.0

0 commit comments

Comments
 (0)