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

style: Enforce styling and linting #53

Merged
merged 6 commits into from
May 12, 2024
Merged

style: Enforce styling and linting #53

merged 6 commits into from
May 12, 2024

Conversation

nbuchwitz
Copy link
Owner

Use black as formatter and ruff as linter

@nbuchwitz nbuchwitz force-pushed the format-black branch 5 times, most recently from 297275b to 88a892d Compare May 12, 2024 10:56
@nbuchwitz nbuchwitz self-assigned this May 12, 2024
@nbuchwitz nbuchwitz force-pushed the format-black branch 4 times, most recently from ed55675 to 4a50ebe Compare May 12, 2024 11:13
Rework some code to make linter happy (esp. use f strings).

Signed-off-by: Nicolai Buchwitz <[email protected]>
Unfortunately Red Hat's CentOS is not longer an open alternative to
RHEL, this replace it in the setup instructions with Rock / Alma Linux.

Signed-off-by: Nicolai Buchwitz <[email protected]>
The status field was camel case in earlier versions of the API, but was
somehow changed to lower case. To make it compatible with both versions,
make the return value from the API lower case before comparison.

Signed-off-by: Nicolai Buchwitz <[email protected]>
Introduc aliases for check modes to make naming more consistent:

- io_wait: io-wait
- vm_status: vm-status

Signed-off-by: Nicolai Buchwitz <[email protected]>
@nbuchwitz nbuchwitz merged commit cf66cc2 into main May 12, 2024
2 checks passed
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.

1 participant