Skip to content

Commit

Permalink
Test: Bump pylint and astroid to latest 2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
nzlosh committed Mar 28, 2024
1 parent 0b0d677 commit ddf4fbb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions pylint_plugins/api_models_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

import pylint.checkers.typecheck
import pylint.testutils
from pylint.interfaces import Confidence

# merely importing this registers it in astroid
# so parse() will use our predicate and transform functions.
Expand Down Expand Up @@ -305,6 +306,13 @@ def test():
msg_id="no-member", # E1101
args=("Instance of", "TestAPI", "missing", ""),
node=assign_node_missing.value,
line=assign_node_missing.lineno,
# fixme: +10 is a workaround, need understand why coloffset
# is 4 but visit_attribute is coloffset 14.
col_offset=assign_node_missing.col_offset+10,
end_line=assign_node_missing.end_lineno,
end_col_offset=assign_node_missing.end_col_offset,
confidence=Confidence(name='INFERENCE', description='Warning based on inference result.'),
)
):
self.checker.visit_attribute(assign_node_missing.value)
4 changes: 2 additions & 2 deletions test-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
coverage
pep8==1.7.1
st2flake8==0.1.0
astroid==2.5.6
pylint==2.8.2
astroid==2.15.8
pylint==2.17.7
pylint-plugin-utils>=0.4
black==22.3.0
pre-commit==2.1.0
Expand Down

0 comments on commit ddf4fbb

Please sign in to comment.