https://github.com/fidgetingbits/pre-commit-statix
pre-commit hook for running statix
https://github.com/fidgetingbits/pre-commit-statix
Last synced: 4 months ago
JSON representation
pre-commit hook for running statix
- Host: GitHub
- URL: https://github.com/fidgetingbits/pre-commit-statix
- Owner: fidgetingbits
- License: mit
- Created: 2024-04-04T07:38:03.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-05T00:22:11.000Z (almost 2 years ago)
- Last Synced: 2025-09-30T06:54:41.493Z (5 months ago)
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# pre-commit-statix
Lints Nix files using [statix](https://github.com/NerdyPepper/statix).
This is an unofficial pre-commit hook to use until this [PR](https://github.com/nerdypepper/statix/pull/81) gets merged.
## Installation
This hook is meant to be used with [pre-commit](https://pre-commit.com/).
Add the following hook to `.pre-commit-config.yaml`:
```yaml
- repo: https://github.com/fidgetingbits/pre-commit-statix
rev: v1.0.0
hooks:
- id: statix-check
```
If you want to automatically fix the code, use `static-fix` id instead.
## License
Copyright © 2024 fidgetingbits
Unless otherwise specified, files in this repository are licensed under
the MIT license; see [LICENSE.md](LICENSE.md) for more information.