Skip to content

Conversation

@MichaReiser
Copy link
Contributor

@MichaReiser MichaReiser commented Nov 18, 2025

We plan to change ty to exit with an error code of 2 if there's an IO error.

This requires us to exclude non-utf files from checking

Test Plan

Passing CI on astral-sh/ruff#21508

mypy_cmd="{mypy} {paths}",
pyright_cmd="{pyright} {paths}",
paths=["rotkehlchen", "tools/data_faker"],
paths=["rotkehlchen"],
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tools/data_faker directory no longer exists

@MichaReiser MichaReiser force-pushed the ty-exclude-non-utf-files branch from dc18c5a to 99fe2fe Compare November 18, 2025 09:19
pyright_cmd="{pyright} {paths}",
paths=["pydantic"],
deps=["annotated-types", "pydantic-core", "typing-extensions", "typing-inspection"],
deps=[
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't mind reverting the formatting changes if keeping them single line is indeed preferred (it will require fighting my IDE but I can do it ;))

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would like to see this change, but it was suggested elsewhere by @AlexWaygood that we might want to keep the existing format.

@MichaReiser MichaReiser marked this pull request as ready for review November 18, 2025 09:26
@MichaReiser MichaReiser force-pushed the ty-exclude-non-utf-files branch from 99fe2fe to a042101 Compare November 18, 2025 10:08
@MichaReiser MichaReiser force-pushed the ty-exclude-non-utf-files branch from a042101 to 13f0fe5 Compare November 18, 2025 10:11
Copy link
Collaborator

@sharkdp sharkdp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you

@sharkdp sharkdp merged commit 089ac1d into hauntsaninja:master Nov 18, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants