pre-commit hook for Pyre.
pyre-check-pre-commit
is a script hook, meaning that pre-commit does not create a virtual environment for it, nor does it install any dependencies on your behave. As such, you must have pyre-check
installed.
In your .pre-commit-config.yaml
, add:
repos:
- repo: https://github.com/PyriteAI/pyre-check-pre-commit
rev: 0.1.0
hooks:
- id: pyre-check
pyre-check-pre-commit
supports the following arguments:
-d | --work-dir
: move to the given directory before executing pyre.
Any additional arguments will be passed to pyre
.