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

chore(ci): remove black from CI, we already use ruff #773

Merged
merged 2 commits into from
Jan 29, 2025
Merged

Conversation

tengomucho
Copy link
Collaborator

What does this PR do?

CI was failing due to black errors, but we are already using ruff to check style and lint, so removing black seems like a fair choice.

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

line-length = 119
target-version = ['py38']
extend-exclude = '.ipynb'

Copy link
Collaborator

Choose a reason for hiding this comment

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

We need to find a way to keep the exclusion of the notebooks, as it is too painful.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I force-pushed the last commit to do that and avoid changing the notebooks.

Now "make style" will reformat the code.
I also applied the formatting to all files, so CI should not fail
anymore due to code formatting.
@dacorvo dacorvo merged commit 5f4c8cf into main Jan 29, 2025
10 of 12 checks passed
@dacorvo dacorvo deleted the remove-black branch January 29, 2025 12:43
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