Update pre-commit and gitlab CI configs
Reconfigure gitlab CI to invoke pre-commit
and move
./check-methods-sorted.sh
to its own job.
Add pre-commit hooks for formatting and linting.
The --check
option for black
has been removed to allow for
automatic formatting (otherwise black
only looks for issues and
exits, as opposed to fixing the issues for you, which is useful when
executing pre-commit
locally).