Pre-commit hooks and CI linting for every commit
This PR adds pre-commit hooks and CI linting check for every commit. To enable the pre-commit hooks, the command git config --local core.hooksPath .githooks/
can be used.
The pipeline will also be used for PRs.