ci : switch from pyright to ty (#20826)
* type fixes * switch to ty * tweak rules * tweak more rules * more tweaks * final tweak * use common import-not-found rule
This commit is contained in:
parent
cea560f483
commit
29b28a9824
20 changed files with 181 additions and 124 deletions
30
ty.toml
Normal file
30
ty.toml
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
[environment]
|
||||
extra-paths = ["./gguf-py", "./examples/model-conversion/scripts", "./tools/server/tests"]
|
||||
python-version = "3.10"
|
||||
|
||||
[rules]
|
||||
deprecated = "warn"
|
||||
|
||||
[src]
|
||||
exclude = [
|
||||
"./tools/mtmd/legacy-models/**",
|
||||
]
|
||||
|
||||
[[overrides]]
|
||||
include = [
|
||||
"./tools/server/tests/**",
|
||||
]
|
||||
|
||||
[overrides.rules]
|
||||
unresolved-reference = "ignore"
|
||||
unresolved-import = "ignore"
|
||||
unresolved-attribute = "ignore"
|
||||
|
||||
[[overrides]]
|
||||
include = [
|
||||
"./examples/pydantic_models_to_grammar.py",
|
||||
]
|
||||
|
||||
[overrides.rules]
|
||||
unsupported-operator = "ignore"
|
||||
not-subscriptable = "ignore"
|
||||
Loading…
Add table
Add a link
Reference in a new issue