Skip to content

Commit

Permalink
Bump linting tools and update pylint code for compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
nzlosh committed Mar 29, 2024
1 parent 12b9eda commit d18fb02
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
6 changes: 4 additions & 2 deletions pylint_plugins/api_models_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,10 +309,12 @@ def test():
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,
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.'),
confidence=Confidence(
name="INFERENCE", description="Warning based on inference result."
),
)
):
self.checker.visit_attribute(assign_node_missing.value)
4 changes: 3 additions & 1 deletion requirements-pants.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ psutil
pymongo>=3.11.0,<3.13.0
# pyrabbit used in an integration test
pyrabbit
pytest
astroid==2.15.8
pylint==2.17.7
pytest==6.2.5
python-dateutil
editor==1.6.6
Pygments
Expand Down
6 changes: 4 additions & 2 deletions test-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
coverage
pep8==1.7.1
st2flake8==0.1.0
flake8==7.0.0
st2-flake8 @ git+https://github.com/nzlosh/st2-flake8@master
astroid==2.15.8
pylint==2.17.7
pylint-plugin-utils>=0.4
Expand All @@ -11,7 +12,8 @@ ipython<6.0.0
isort>=4.2.5
mock==4.0.3
tabulate
sphinx==1.7.9
# 4.5.0 required for Jinja-3.1.3 support.
sphinx==4.5.0
sphinx-autobuild
# pin alabaster (sphinx dependency) or pip installs one that is not compatible
alabaster<0.7.14
Expand Down

0 comments on commit d18fb02

Please sign in to comment.