-
Notifications
You must be signed in to change notification settings - Fork 117
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
Migrate from isort and flake8 to ruff #414
Migrate from isort and flake8 to ruff #414
Conversation
- repo: https://github.com/psf/black | ||
rev: 23.10.1 | ||
hooks: | ||
- id: black | ||
args: [--safe, --line-length=120] | ||
- repo: https://github.com/PyCQA/isort |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do ruff + black play well together for sorting imports? I remember that isort came after black due to them conflicting, however that was some time ago and likely fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah ruff went out after black so it supports it without config. (there's also ruffmt now, but I like black for having only one option).
547e1cd
to
38a71d4
Compare
38a71d4
to
2a5ac32
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems okay to me, depends on the other stuff being merged I guess?
cd78a83
to
731fba3
Compare
Yeah, I had to rebase on everything to make it work 👌 |
Blocked by #412 #413. Also need some workflow changes.