Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update pylint to 3.1.0 #6191

Merged
merged 16 commits into from
Apr 30, 2024
Merged

Update pylint to 3.1.0 #6191

merged 16 commits into from
Apr 30, 2024

Conversation

cognifloyd
Copy link
Member

@cognifloyd cognifloyd commented Apr 25, 2024

This extracts @nzlosh's pylint-related updates/fixes from #6157.

  • update pylint
  • Test: Bump pylint and astroid to latest 2.x
  • Remove options to fix pylint Unknown option value warning.
  • Fix Useless option value for W0142, W0232 and R0201
  • Fix E0601: Using variable 'result' before assignment (used-before-assignment)
  • fmt
  • Fix E721 do not compare types
  • Initialise variables to avoid E0601: Use before assignment.
  • Bump pylint and astroid to support latest dnspython.
  • Update pylint calls for support 3.1
  • Fix E0601: used-before-assign lint errors.
  • Disable false alert on import error.

@cognifloyd cognifloyd added this to the 3.9.0 milestone Apr 25, 2024
@cognifloyd cognifloyd requested review from amanda11, mamercad, nzlosh, winem and a team April 25, 2024 23:27
@pull-request-size pull-request-size bot added the size/L PR that changes 100-499 lines. Requires some effort to review. label Apr 25, 2024
pylint_plugins/api_models.py Outdated Show resolved Hide resolved
pylint_plugins/api_models_test.py Outdated Show resolved Hide resolved
Use the source dictionary property to define the line/col numbers
of the virtual/injected assign node, where the assign node
includes both the name (use property name location) and the value
(use property data location). So, the assign node starts at
the start of property_name_node and ends at the end of
the property_data_node. The assign_name_node just inherits
the location of the property_name_node.
We are testing the value node of the assign node (where an assign
node consists of a name and a value node: "name = value"). So,
we need to use the location of the value node not the parent assign
node.
@cognifloyd cognifloyd requested a review from a team April 26, 2024 05:28
@cognifloyd cognifloyd merged commit d4cd09f into master Apr 30, 2024
29 checks passed
@cognifloyd cognifloyd deleted the pylint-update branch April 30, 2024 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external dependency infrastructure: ci/cd maintenance no changelog No Changelog.rst needed for this PR size/L PR that changes 100-499 lines. Requires some effort to review.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants