Skip to content

rcolfin/pre-commit-hooks

Repository files navigation

pre-commit-hooks

CI Build

Some out-of-the-box hooks for pre-commit.

See also: https://github.com/pre-commit/pre-commit

Using pre-commit-hooks with pre-commit

Add this to your .pre-commit-config.yaml

-   repo: https://github.com/rcolfin/pre-commit-hooks
    rev: v0.1.0  # Use the ref you want to point at
    hooks:
      - id: mypy-linter
      - id: shellcheck-linter

mypy-linter

This expects poetry to be used.

To check the pre-commit hooks on all files:

pre-commit run --all-files --verbose

To check on the pre-commit hooks on select files:

pre-commit run --files ./pyproject.toml --verbose

About

Some hooks for pre-commit that work in a mono-repo

Resources

License

Stars

Watchers

Forks

Packages

No packages published