-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[ty] Add --config-file CLI arg #18083
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
Conversation
040f0c5 to
f622e7a
Compare
|
53f8bc2 to
93d17a1
Compare
93d17a1 to
a1c04ab
Compare
940bf59 to
88a623b
Compare
|
@MichaReiser still needs tests but ready for some feedback on the direction |
MichaReiser
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.
The direction looks great to me and it's a nice scoped change. This is turning out great
88a623b to
f452fa0
Compare
|
@thejchap let me know when this is ready for review (a bit hard to tell because it was already ready for review). |
|
@MichaReiser converted back to draft, sorry about that - will mark ready for review once i get tests in for the future - what's the preferred workflow for this type of situation? (ie. looking for feedback on in-progress pr, but pr isn't quite "merge ready") |
|
No worries. The way you asked for early feedback was great
I tend to only look at PRs that are ready for review unless I get tagged. What I find most useful is if the PRs is put back into draft mode if you plan on making more changes before getting a review. This makes it very clear to me that the PR is ready for review when you change its status again. |
f452fa0 to
75a9e5e
Compare
7a25e54 to
fc9b208
Compare
|
@MichaReiser ready for review |
MichaReiser
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.
This is excellent work. Thank you! I've a few small nit comments but this is otherwise good to go)
cc3ad4d to
555ce85
Compare
|
767f0ee to
3b73405
Compare
3b73405 to
991e829
Compare
* main: (246 commits) [ty] Simplify signature types, use them in `CallableType` (astral-sh#18344) [ty] Support ephemeral uv virtual environments (astral-sh#18335) Add a `ViolationMetadata::rule` method (astral-sh#18234) Return `DiagnosticGuard` from `Checker::report_diagnostic` (astral-sh#18232) [flake8_use_pathlib]: Replace os.symlink with Path.symlink_to (PTH211) (astral-sh#18337) [ty] Support cancellation and retry in the server (astral-sh#18273) [ty] Synthetic function-like callables (astral-sh#18242) [ty] Support publishing diagnostics in the server (astral-sh#18309) Add Autofix for ISC003 (astral-sh#18256) [`pyupgrade`]: new rule UP050 (`useless-class-metaclass-type`) (astral-sh#18334) [pycodestyle] Make `E712` suggestion not assume a context (astral-sh#18328) put similar dunder-call tests next to each other (astral-sh#18343) [ty] Derive `PartialOrd, Ord` for `KnownInstanceType` (astral-sh#18340) [ty] Simplify `Type::try_bool()` (astral-sh#18342) [ty] Simplify `Type::normalized` slightly (astral-sh#18339) [ty] Move arviz off the list of selected primer projects (astral-sh#18336) [ty] Add --config-file CLI arg (astral-sh#18083) [ty] Tell the user why we inferred a certain Python version when reporting version-specific syntax errors (astral-sh#18295) [ty] Implement implicit inheritance from `Generic[]` for PEP-695 generic classes (astral-sh#18283) [ty] Add hint if async context manager is used in non-async with statement (astral-sh#18299) ...
Summary
astral-sh/ty#217
--config-fileCLI option which overrides discovered configuration filesMetaOptions(not very sold on the name...) that encapsulates both options passed by the CLI, as well as the config file override, which influences howProjectMetadatagets discovered/created (which the CLI options then get applied to).Test Plan
MetaOptionsand tested watching for changes on the provided config file override