Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 921 Bytes

README.md

File metadata and controls

32 lines (25 loc) · 921 Bytes

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:
    ---
    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

License

danielhoherd/pre-commit-hooks is licensed under the MIT License.