Closed venthur closed 7 months ago
Good call. I only use --fix
here to fix the linter issues that can be automatically fixed. In case of isort
all of them should be fixable, some others might not be, though, and we're running black
anyways which should take care of the rest. In principal, you could think about replacing black
with ruff
as well and go full ruff format .
For formatting, you shouldn't have to run anything apart from pre-commit, and it should just do it all
For linting obviously that's not always possible.
Sorting imports is certainly formatting and not linting though
Ah ok, i wasn't aware. Feel free to close that PR then. Cheers!
Superceded by #313 😄
Heya, this won't actually sort them when running pre-commit though, it'll just fail if they are not sorted. You need to set up the ruff formatter and stuff for that