This is a collection of hooks that I use quite broadly.
- create .pre-commit-config.yaml in you git project with the following included:
--- 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
pre-commit install
pre-commit run --all-files
- Some hooks here were originally taken from https://github.com/Lucas-C/pre-commit-hooks/ (MIT License)
danielhoherd/pre-commit-hooks is licensed under the MIT License.