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

all: Replace "black" with "ruff format". #759

Merged
merged 1 commit into from
Dec 20, 2023

Conversation

jimmo
Copy link
Member

@jimmo jimmo commented Oct 26, 2023

See micropython/micropython#12805 for the corresponding change to the main repo.

  • Add config for [tool.ruff.format] to pyproject.toml.
  • Update pre-commit to run both ruff and ruff-format.
  • Update a small number of files that change with ruff's rules.
  • Update CI.
  • Simplify codeformat.py just forward directly to "ruff format"

This work was funded through GitHub Sponsors.

@jimmo jimmo force-pushed the ruff-replace-black branch 2 times, most recently from 7bc2b6b to e73e240 Compare October 26, 2023 05:27
- Add config for [tool.ruff.format] to pyproject.toml.
- Update pre-commit to run both ruff and ruff-format.
- Update a small number of files that change with ruff's rules.
- Update CI.
- Simplify codeformat.py just forward directly to "ruff format"

This work was funded through GitHub Sponsors.

Signed-off-by: Jim Mussared <[email protected]>
@dpgeorge dpgeorge merged commit cee0945 into micropython:master Dec 20, 2023
3 checks passed
@dpgeorge
Copy link
Member

Thanks, this is great.

@dpgeorge dpgeorge mentioned this pull request Dec 20, 2023
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