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

Bug: replaced black with ruff on pre-commit #1143

Merged
merged 2 commits into from
Feb 26, 2025

Conversation

italomaia
Copy link
Contributor

@italomaia italomaia commented Feb 18, 2025

Contributor Checklist:

As black and ruff have a different idea on how the formatted code should look like, by using pre-commit, which is advised in the contributing guide, we block any contribution, as ruff is used in the ci format check and black is used in the pre-commit. This MR fixes this: #1142

@italomaia italomaia changed the title Bug: replaced black with ruff in the pre-commit Bug: replaced black with ruff on pre-commit Feb 18, 2025
@p12tic
Copy link
Collaborator

p12tic commented Feb 23, 2025

Looks good. Please limit commit message line length to 72 chars and split it into message subject and message body parts. See https://cbea.ms/git-commit/ for some other guidelines

@italomaia
Copy link
Contributor Author

Can do; minute

@italomaia italomaia force-pushed the bug/use-ruff branch 2 times, most recently from 8818442 to da1c3a1 Compare February 25, 2025 19:04
@italomaia
Copy link
Contributor Author

Done.

Current python files are already compatible with ruff, while very
incompatible with black standard therefore, this change just enforces
the reality of the codebase. Without it, pre-commit and the ci will
fight one-another with different formatting.

Signed-off-by: Italo Maia <[email protected]>
Added flake8 excludes to rules that are already ignored by the current
code to avoid validation issues with code that has already been
approved. Added pylint disable to line with lint offense already
accepted.

Signed-off-by: Italo Maia <[email protected]>
@p12tic p12tic merged commit 976847e into containers:main Feb 26, 2025
8 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.

2 participants