Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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).