Repository navigation
chore(ci): run ty outside pre-commit.ci - #682
Conversation
Up to standards ✅🟢 Issues
|
|
Hi @Rodbourn, thanks for this patch! Could you add an entry to the changelog under the |
Of course! |
|
Hello @jeertmans , updated the changelog and merged in main |
f5fe5dd to
02ade8a
Compare
Drop the unused `tmp_dir` binding in `test_issue540` (F841) and move the DTS clamp out of `concatenate_video_files` into a small helper so the function is back under the complexity limit (C901). No behavior change.
02ade8a to
4db3028
Compare
|
@jeertmans , after updating from main it did go red due to a recent change on main. I had claude look it over and it has a pretty clean fix for it, that i've included in this PR, let me know if you would prefer it in a seperate PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #682 +/- ##
=======================================
Coverage 79.09% 79.09%
=======================================
Files 23 23
Lines 2215 2215
=======================================
Hits 1752 1752
Misses 463 463 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This reverts commit 4db3028. Reverted per review feedback: this PR is scoped to moving the `ty` hook off pre-commit.ci, and the lint fixes belong in their own PR.
|
Hum, apparently the typechecking job fails to fun, see https://github.com/jeertmans/manim-slides/actions/runs/34128324834/job/101895937729?pr=682 Any idea how to fix this? |
|
Thanks @Rodbourn! |
|
My pleasure @jeertmans ! |
* ci: run ty outside pre-commit.ci * chore(changelog): add entry for running ty outside pre-commit.ci * chore(lint): fix ruff errors introduced by jeertmans#680 Drop the unused `tmp_dir` binding in `test_issue540` (F841) and move the DTS clamp out of `concatenate_video_files` into a small helper so the function is back under the complexity limit (C901). No behavior change. * chore(changelog): wrap jeertmans#682 entry to 80 columns * Revert "chore(lint): fix ruff errors introduced by jeertmans#680" This reverts commit 4db3028. Reverted per review feedback: this PR is scoped to moving the `ty` hook off pre-commit.ci, and the lint fixes belong in their own PR. * fix(ci): install cairo and pango headers for type checks
Description
ty-pre-commitrequires network access while resolving the project's declared type-checking dependencies, but pre-commit.ci disables network access while hooks are running. As a result, the hosted hook repeatedly fails on whichever uncached dependency it attempts to download first.This PR follows the integration recommended by
ty-pre-commit:tyonly on the hosted pre-commit.ci runner;typre-commit hook unchanged for local use;setup-uvcache before running the same hook throughuvx pre-commit run ty --all-files.Type-checking coverage is not reduced: the check moves to a runner that supports its dependency resolution requirements. Other pre-commit.ci hooks continue to run there as before.
Verification
ty.git diff --checkpassed.Check List
Check all the applicable boxes:
Screenshots
Not applicable; this PR changes CI routing only.
Note to reviewers
This is intentionally limited to the existing
tyCI integration. It does not change project dependencies, type-checking scope, or application behavior.The
ty-pre-commitmaintainers document that their hook cannot run under the hosted pre-commit.ci runner because hook-time network access is disabled. Their recommended configuration is to skiptythere and invoke it separately in a network-enabled CI job.