Skip to content

A collection of pre-commit hooks I use in most of my repositories.

License

Notifications You must be signed in to change notification settings

danielhoherd/pre-commit-hooks

Repository files navigation

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.

About

A collection of pre-commit hooks I use in most of my repositories.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published