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

CASMPET-7290: Add pylint to build pipeline; correct errors identified by pylint #638

Merged
merged 2 commits into from
Dec 5, 2024

Conversation

mharding-hpe
Copy link
Contributor

This PR adds pylint to the build pipeline. The builds will only fail if pylint identifies fatal errors. A full pylint run will also happen, but currently it will not be able to cause the build to fail. This is because there are a lot of issues it identified in the existing Python code. Hopefully we can gradually address those. If so, we can eventually have pylint require minimum code quality, or else fail the build.

After adding pylint, it identified several fatal errors in the existing tests. This PR corrects those as well. None of them are tricky or risky changes.

Copy link
Contributor

@jacobsalmela jacobsalmela left a comment

Choose a reason for hiding this comment

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

Cool thanks

@mharding-hpe
Copy link
Contributor Author

Cool thanks

No problem -- this is something I've been trying to do in a lot of repos. I also want to eventually add mypy, but for that we'll need to make sure the code has type annotations, and that'll also take a little while. But that has allowed me to find a bunch of bugs in BOS, so I'm hoping to eventually get this done.

@mharding-hpe mharding-hpe merged commit cab165a into release/1.6 Dec 5, 2024
3 checks passed
@mharding-hpe mharding-hpe deleted the pylint branch December 5, 2024 19:22
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.

2 participants