https://github.com/murilo-cunha/mirrors-pyre
Mirror of the `pyre-check` package for pre-commit.
https://github.com/murilo-cunha/mirrors-pyre
pre-commit-hook pyre python type-checker
Last synced: 4 months ago
JSON representation
Mirror of the `pyre-check` package for pre-commit.
- Host: GitHub
- URL: https://github.com/murilo-cunha/mirrors-pyre
- Owner: murilo-cunha
- License: mit
- Created: 2023-01-12T19:05:27.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-30T08:27:02.000Z (over 1 year ago)
- Last Synced: 2025-04-03T13:51:19.096Z (about 1 year ago)
- Topics: pre-commit-hook, pyre, python, type-checker
- Language: Python
- Homepage:
- Size: 27.3 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pyre mirror
Mirror of `pyre-check` for pre-commit.
For `pre-commit`, see [github.com/pre-commit/pre-commit](https://github.com/pre-commit/pre-commit). For `pyre-check`, see [github.com/facebook/pyre-check](https://github.com/facebook/pyre-check).
## Using pyre with pre-commit
### Pyre configuration
Add this to your project root
```js
{
"site_package_search_strategy": "pep561",
"source_directories": [
"."
],
"ignore_all_errors": [
".venv/" // ignore files from this directory - virtual environments, etc.
]
}
```
### Pre-commit configuration
Add this to your `.pre-commit-config.yaml`
```yaml
- repo: https://github.com/murilo-cunha/mirrors-pyre
rev: v0.9.17 # use the sha/tag you want to point at
hooks:
- id: pyre-check
additional_dependencies: ["..."] # dependencies required by your project with no available stubs
```