Please describe the problem you'd like to be solved
The latest versions of our code formatter, black, conflict with our import sorting package, reorder-python-imports. See https://github.com/psf/black/issues/4175
This has forced us to pin black to an old version in all our Python packages.
Describe the solution you'd like to see implemented
Many open source Python projects, including a3m, have moved to using ruff instead of black for code formatting. ruff also includes import sorting capabilities and might allow us to drop other pre-commit dependencies like flake8 and pyupgrade.
Please describe the problem you'd like to be solved
The latest versions of our code formatter,
black
, conflict with our import sorting package,reorder-python-imports
. See https://github.com/psf/black/issues/4175This has forced us to pin
black
to an old version in all our Python packages.Describe the solution you'd like to see implemented
Many open source Python projects, including
a3m
, have moved to usingruff
instead ofblack
for code formatting.ruff
also includes import sorting capabilities and might allow us to drop otherpre-commit
dependencies likeflake8
andpyupgrade
.Describe alternatives you've considered
Replacing
reorder-python-imports
withisort
.Additional context
Affected projects:
[x] artefactual/fixity
For Artefactual use:
Before you close this issue, you must check off the following: