Skip to content

Address warnings from linter#3224

Merged
sgoggins merged 1 commit intomainfrom
lint-fix
Jul 14, 2025
Merged

Address warnings from linter#3224
sgoggins merged 1 commit intomainfrom
lint-fix

Conversation

@MoralCode
Copy link
Copy Markdown
Collaborator

Description
Fixes linter warnings to make one of the bots be quiet

This PR pretty much just removed unused imports and renames a couple variables to prevent shadowing

Signed commits

  • Yes, I signed my commits.

Signed-off-by: Adrian Edwards <adredwar@redhat.com>
@MoralCode MoralCode requested review from ABrain7710 and Ulincsys and removed request for ABrain7710 July 11, 2025 01:14
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If possible, I would be greatly interested to figure out how to turn off the "Unnecessary else after X" warnings. IMO they are not helpful, and they encourage a reduction in readability.

Copy link
Copy Markdown
Collaborator Author

@MoralCode MoralCode Jul 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we dont already have one, we can add a pylint config file to the repo to define a set of linting rules to enforce.

https://pylint.pycqa.org/en/latest/user_guide/configuration/all-options.html

Copy link
Copy Markdown
Collaborator

@sgoggins sgoggins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@sgoggins sgoggins merged commit d8f32ac into main Jul 14, 2025
18 of 19 checks passed
@MoralCode MoralCode deleted the lint-fix branch July 15, 2025 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants