-
Notifications
You must be signed in to change notification settings - Fork 49
Exclude non-utf8 files when running ty #221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exclude non-utf8 files when running ty #221
Conversation
| mypy_cmd="{mypy} {paths}", | ||
| pyright_cmd="{pyright} {paths}", | ||
| paths=["rotkehlchen", "tools/data_faker"], | ||
| paths=["rotkehlchen"], |
There was a problem hiding this comment.
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
dc18c5a to
99fe2fe
Compare
mypy_primer/projects.py
Outdated
| pyright_cmd="{pyright} {paths}", | ||
| paths=["pydantic"], | ||
| deps=["annotated-types", "pydantic-core", "typing-extensions", "typing-inspection"], | ||
| deps=[ |
There was a problem hiding this comment.
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 ;))
There was a problem hiding this comment.
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.
99fe2fe to
a042101
Compare
a042101 to
13f0fe5
Compare
sharkdp
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you
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