Skip to content

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 a team, amanda11, mamercad, nzlosh and winem 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
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 enabled auto-merge April 29, 2024 19:10
@cognifloyd cognifloyd disabled auto-merge April 29, 2024 19:10
@cognifloyd cognifloyd enabled auto-merge April 29, 2024 19:11
@cognifloyd cognifloyd merged commit d4cd09f into master Apr 30, 2024
@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.

4 participants