Skip to content
This repository has been archived by the owner on Dec 29, 2021. It is now read-only.

PyriteAI/pyre-check-pre-commit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pyre pre-commit Hook

pre-commit hook for Pyre.

Prerequisites

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.

Usage

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

Arguments

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.