disnake
disnake copied to clipboard
refactor(tooling): Switch to ruff-format for formatting.
Summary
Replaces black with ruff-format.
~~Depends on #1168~~
Checklist
- [x] If code changes were made, then they have been tested
- [x] I have updated the documentation to reflect the changes
- [x] I have formatted the code properly by running
pdm lint
- [x] I have type-checked the code by running
pdm pyright
- [ ] This PR fixes an issue
- [ ] This PR adds something new (e.g. new method or parameters)
- [ ] This PR is a breaking change (e.g. methods or parameters removed/renamed)
- [x] This PR is not a code change (e.g. documentation, README, ...)
Ready for consideration!
I think I voiced my concerns about all-in-one tooling on discord before; to summarize, not being able to update linter and formatter separately anymore isn't ideal.
Don't see much of an issue with that, but given that
I'd prefer only merging this after the next release
We'll have a chance to test it 😄
https://github.com/DisnakeDev/disnake/pull/1169/commits/165ab8484b816187a54fda57b1492503299d38ab Undo the formatting changes too
Excuse me, why?
Excuse me, why?
What's the point of fmt: off
if the thing it was guarding from being formatted, has been formatted?
https://github.com/DisnakeDev/disnake/pull/1169/files#diff-6377fad5f75948c1eaa880c932839dd3f47b01c21056433ada31632cb518a665R480-R499
Ruff v0.5 has just been released, so technically this can move forward. I'll try and find some time to update this