Code is not formatted according to pre-commit rules
[EPIC] Coding Conventions: Setup pre-commit and... (aura#110 - closed)
Parent:When committing code I’ve noticed that old code is reformatted that I haven’t even touched.
After running pipx run black==23.7.0 --check .
in the repository a lot of files were marked as invalid. I guess that after c31798df has been comitted, some of the styles black applies have changed compared to previous versions of black.
I see two tasks:
-
The code should be reformatted according to the black version specified in
.pre-commit-config.yaml
-
A lint CI job should be added that automatically checks the code style (and maybe should parse the black version from the
.pre-commit-config.yaml
so they can’t diverge)