https://github.com/legovaer/pre-commit-hooks
Some custom hooks for pre-commit
https://github.com/legovaer/pre-commit-hooks
git home-assistant linter pre-commit pre-commit-hook pre-commit-hooks python refactoring
Last synced: 5 months ago
JSON representation
Some custom hooks for pre-commit
- Host: GitHub
- URL: https://github.com/legovaer/pre-commit-hooks
- Owner: legovaer
- License: mit
- Created: 2023-02-08T04:07:27.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-10T17:13:05.000Z (almost 3 years ago)
- Last Synced: 2025-02-09T01:15:04.341Z (about 1 year ago)
- Topics: git, home-assistant, linter, pre-commit, pre-commit-hook, pre-commit-hooks, python, refactoring
- Language: Python
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/legovaer/pre-commit-hooks/actions/workflows/main.yml)
[](https://results.pre-commit.ci/latest/github/legovaer/pre-commit-hooks/main)
pre-commit-hooks
================
Some custom hooks for pre-commit.
See also: https://github.com/pre-commit/pre-commit
### Using pre-commit-hooks with pre-commit
Add this to your `.pre-commit-config.yaml`
```yaml
- repo: https://github.com/legovaer/pre-commit-hooks
rev: v0.1.0 # Use the ref you want to point at
hooks:
- id: hide-hassio-secrets
# - id: ...
```
### Hooks available
#### `hide-hassio-secrets`
Generate a dummy secrets.yaml file.
- Specify the name of the secrets file with `args: ['--output=fake-secrets.yaml']` (default=secrets-fake.yaml).