Skip to content
This repository was archived by the owner on Oct 26, 2025. It is now read-only.

Latest commit

 

History

History
34 lines (26 loc) · 1.05 KB

File metadata and controls

34 lines (26 loc) · 1.05 KB

ARCHIVAL NOTICE: the github repository for this project has been archived. Development continues at https://gitlab.com/danielhoherd/pre-commit-hooks

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.