https://github.com/lasuillard/pre-commit-hooks
Personal pre-commit hooks to handle grunt tasks.
https://github.com/lasuillard/pre-commit-hooks
pre-commit-hooks python
Last synced: 9 months ago
JSON representation
Personal pre-commit hooks to handle grunt tasks.
- Host: GitHub
- URL: https://github.com/lasuillard/pre-commit-hooks
- Owner: lasuillard
- License: mit
- Created: 2023-10-15T04:05:55.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-04-02T11:39:04.000Z (9 months ago)
- Last Synced: 2025-04-02T12:29:59.024Z (9 months ago)
- Topics: pre-commit-hooks, python
- Language: Python
- Homepage:
- Size: 225 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pre-commit-hooks
[](https://opensource.org/licenses/MIT)
[](https://github.com/lasuillard/pre-commit-hooks/actions/workflows/ci.yaml)
[](https://codecov.io/gh/lasuillard/pre-commit-hooks)

Personal pre-commit hooks to handle grunt tasks.
## 🪝 Available hooks
See [.pre-commit-hooks-.yaml](./.pre-commit-hooks.yaml) file for available hooks.
### check-file-pair
Check file in source directory have its pair in target directory.
### source-matching-test
Check Python source (`src/`) file has matching test file in (`tests/`) directory.
### test-matching-source
Check Python test (`tests/`) file has matching source file in (`src/`) directory.
### preferred-suffix
Check file has preferred suffix if there are multiple available suffixes.
### alloy-format
> [!IMPORTANT]
> This hook is just a convenience shortcut to invoke [Alloy](https://github.com/grafana/alloy) CLI. It does **NOT** install `alloy`.
Reformat `.alloy` files using `alloy fmt`.