archivematica / Issues

Issues repository for the Archivematica project
GNU Affero General Public License v3.0
15 stars 1 forks source link

Problem: pre-commit dependencies conflict with each other #1693

Closed replaceafill closed 2 weeks ago

replaceafill commented 1 month ago

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.

Describe alternatives you've considered

Replacing reorder-python-imports with isort.

Additional context

Affected projects:

For Artefactual use:

Before you close this issue, you must check off the following: