I rearranged the pre-commits to run those that fix issues first and checks later. However, the problem persists even with the correct flags set. For example, with Ruff, the --fix flag should return 0 if it fixes issues, but it returns 1. I'm not sure why this happens, as the --exit-non-zero-on-fix flag should handle this behavior, but we don't use this flag and still encounter this behaviour.
I also added all necessary flags for each formatter to attempt fixes where possible and specified the Python version for reproducibility. In my opinion, @Fersoil, you can check and try it, but I've already done this. My advice is to leave it as it is (maybe remove the later pre-commits) and, at most, write an issue on the Ruff repository page.
I rearranged the pre-commits to run those that fix issues first and checks later. However, the problem persists even with the correct flags set. For example, with Ruff, the
--fix
flag should return0
if it fixes issues, but it returns1
. I'm not sure why this happens, as the--exit-non-zero-on-fix
flag should handle this behavior, but we don't use this flag and still encounter this behaviour.I also added all necessary flags for each formatter to attempt fixes where possible and specified the Python version for reproducibility. In my opinion, @Fersoil, you can check and try it, but I've already done this. My advice is to leave it as it is (maybe remove the later pre-commits) and, at most, write an issue on the Ruff repository page.