Skip to content

Conversation

@MoralCode
Copy link
Contributor

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
Contributor

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
Contributor 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
Member

@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