A pre-commit hook for ty.
Distributed as a standalone repository to enable installing ty via prebuilt wheels from pypi.
To run ty's checker via pre-commit, add the following to your .pre-commit-config.yaml:
repos:
- repo: https://github.com/NSPBot911/ty-pre-commit
# ty version.
rev: v0.0.11
hooks:
# Run the linter.
- id: ty-checkTo avoid running on Jupyter Notebooks, remove jupyter from the list of allowed filetypes:
repos:
- repo: https://github.com/NSPBot911/ty-pre-commit
# ty version.
rev: v0.0.11
hooks:
# Run the linter.
- id: ty-check
types_or: [ python, pyi ]ty-pre-commit is licensed under the MIT License, until Astral makes their own repo.