Some out-of-the-box hooks for pre-commit.
See also: https://github.com/pre-commit/pre-commit
Add this to your .pre-commit-config.yaml
- repo: https://github.com/rcolfin/pre-commit-hooks
rev: v0.1.0 # Use the ref you want to point at
hooks:
- id: mypy-linter
- id: shellcheck-linter
This expects poetry to be used.
To check the pre-commit hooks on all files:
pre-commit run --all-files --verbose
To check on the pre-commit hooks on select files:
pre-commit run --files ./pyproject.toml --verbose