-
Notifications
You must be signed in to change notification settings - Fork 22
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
Move to Ruff Formatting and Linting #498
Conversation
15ad5c0
to
c2f1911
Compare
d9ca8e3
to
5498d09
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Note: I'm thinking that we need to have pinned packages instead of what we are doing now. As we had some issues in the past because packages randomly updated. This is out of scope of this PR, but we will need to do that to ensure that ibutsu will not break on prod because of some random package
c3e20b3
to
07bd9e3
Compare
ruff lint/format implementations Update dockerfiles for hadolint standards add 3.11 to github matrix Update podman_build.sh script Track results a bit better, and use printf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested it locally and seems everything works fine. Only one suggestion added
Use getopts to implement help text and a flag for images with no registry Move default image tag back to quay.io/ibutsu prefix, use new flag to control it
Move to ruff and ruff-format, include a few rules to replace previous pre-commit hooks for python.
Introduce hadolint, and adhere to (most) of it's rules.
Remaining work:
Trying to trace some history and purpose of the different image building scripts in the repo.
Handling Python updates and podman/compose/OCP template and script updates in another PR.