astral-sh / astral-sh/ty-pre-commit
How to specify custom ty.toml configs?
- Dominant language
- Python
- Stars
- 149
- Forks
- 3
- Avg merge
- 4h 29m
- Merged PRs (30d)
- 2
Description
Hi! Thanks for this pre-commit hook. I'd like to setup two different hooks, one that runs manual and checks unresolved imports and references (slow, requires me to build my C++/Python bindings), and one that ignores `unresolved-import` and `unresolved-reference`.
For that purpose I'd like to pass two different `ty.toml` config files to the pre-commit hooks, but it looks like `uv check` for not forward `--config-file` to `ty` and I don't think we can easily pass `TY_CONFIG_FILE` in the pre-commit hook config either.
Do you have a suggestion on how to proceed?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.