Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/danielhoherd/pre-commit-hooks
A collection of pre-commit hooks I use in most of my repositories.
https://github.com/danielhoherd/pre-commit-hooks
pre-commit
Last synced: 2 months ago
JSON representation
A collection of pre-commit hooks I use in most of my repositories.
- Host: GitHub
- URL: https://github.com/danielhoherd/pre-commit-hooks
- Owner: danielhoherd
- License: mit
- Created: 2019-03-20T20:59:58.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-03-27T16:08:47.000Z (10 months ago)
- Last Synced: 2024-03-27T17:28:51.065Z (10 months ago)
- Topics: pre-commit
- Language: Python
- Homepage:
- Size: 23.4 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pre-commit-hooks
This is a collection of hooks that I use quite broadly.
# Install
1. create .pre-commit-config.yaml in you git project with the following included:
```yaml
---
repos:
- repo: https://github.com/danielhoherd/pre-commit-hooks
rev: master
hooks:
- id: CVE-2017-18342
- id: remove-unicode-left-to-right-mark
- id: remove-unicode-zero-width-non-breaking-spaces
- id: remove-unicode-zero-width-space
- id: replace-en-dashes
- id: replace-greek-question-mark
- id: replace-unicode-non-breaking-spaces
- id: sort-ansible-requirements-yml
```
2. `pre-commit install`
3. `pre-commit run --all-files`# Credits
- Some hooks here were originally taken from (MIT License)
# License
danielhoherd/pre-commit-hooks is licensed under the [MIT License](LICENSE).