HighQualityVideoGeneration / pyproject.toml
someone-in-the-world's picture
Claude Sonnet 5
Add mypy --strict type-check CI gate on every PR
2682589
Raw History Blame Contribute Delete
984 Bytes
[tool.mypy]
python_version = "3.10"
strict = true
# Vendored third-party code (see file headers for provenance) — not ours to annotate. `exclude`
# only skips these as top-level targets; `ignore_errors` below is what actually silences errors
# reported inside them when first-party code imports them.
exclude = [
"^postprocess/upscale/srvgg_arch\\.py$",
"^model/warplayer\\.py$",
"^model/loss\\.py$",
"^model/pytorch_msssim/",
]
[[tool.mypy.overrides]]
module = ["postprocess.upscale.srvgg_arch", "model.warplayer", "model.loss", "model.pytorch_msssim.*"]
ignore_errors = true
# Libraries with no inline types or stubs on PyPI.
[[tool.mypy.overrides]]
module = ["diffusers.*", "gradio.*", "spaces.*", "torchao.*", "safetensors.*", "cv2.*", "pyarrow.*"]
ignore_missing_imports = true
# Downloaded at runtime by postprocess/interpolation.py (gitignored, not present at type-check time).
[[tool.mypy.overrides]]
module = "train_log.*"
ignore_missing_imports = true