@Bachibouzouk, please review this PR and merge on approval. But first, PR #197 needs to be fixed as spoken by you and merged because this PR depends on it.
This PR uses pre-commit for installing and managing Git hooks.
The config can be found in .pre-commit-config.yaml in the root folder.
Hooks run before every commit.
Run changed files manually:
pre-commit
Run all files manually (recommended after installing a new hook):
pre-commit
Please note: I configured that hooks shall fail fast. This can result in running the commit (or pre-commit) multiple times. If we realize that this behavior is different from what we want to see, we can change it in the config in the future.
This PR is based on unmerged PR #197.
Closes #215.
@Bachibouzouk, please review this PR and merge on approval. But first, PR #197 needs to be fixed as spoken by you and merged because this PR depends on it.
This PR uses
pre-commit
for installing and managing Git hooks.Initial installation:
pip install (app/)requirements.txt
pre-commit install
The config can be found in
.pre-commit-config.yaml
in the root folder.Hooks run before every commit.
Run changed files manually:
pre-commit
Run all files manually (recommended after installing a new hook):
pre-commit
Please note: I configured that hooks shall fail fast. This can result in running the commit (or pre-commit) multiple times. If we realize that this behavior is different from what we want to see, we can change it in the config in the future.