Skip to content

Conversation

@paddyroddy
Copy link

@paddyroddy paddyroddy commented Jul 20, 2025

Rationale for this change

We need some kind of type checking in CI, so users know if they have broke anything.

What changes are included in this PR?

Adds a single step in the Python workflow to run ty check. Ideally, we'd use a GitHub Action if astral release one. It would be nice also if this were an extra job (using needs: docker), and copy over the artefacts. But I wasn't sure what to copy over, so playing it safe.

Are these changes tested?

It will once the actions here run.

Are there any user-facing changes?

No.

Base automatically changed from add-typing to main July 24, 2025 14:53
@rok rok merged this pull request into main Jul 24, 2025
49 of 54 checks passed
@rok rok deleted the typing-ci branch July 24, 2025 15:08
rok added a commit that referenced this pull request Jul 24, 2025
* Prepare for licence merging

* Exclude `stubs` from `rat` test

* Add Apache licence clause to `py.typed`

* Reduce list

* Add `ty` as a step in the action

* Run in the correct directory

* Remove `check` from `pip`

* Fix `unresolved-reference` error

* Revert "Fix `unresolved-reference` error"

* update ty config

---------

Co-authored-by: Rok Mihevc <rok@mihevc.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.