-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Deduplicate pyright version #9299
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
+1 on the idea. But maybe we could add the pyright version to |
I agree it's a great idea to clean this up. Here's an alternative implementation to consider, where we store the version in a |
I like the pyproject.toml location better. Thanks for the CI toml loader example.
Agreed, for instance all mypy scripts are run on at least the oldest non-eol python version. Some tests are done on 3.9+ because of annotations. And others just use the latest python version typeshed works with. Those ranges could be named and defined in a common config file. |
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
I'd prefer to have our dependencies in one place and not split over multiple files. |
Fair, I get that. What would the |
That's the thing. On the other hand, |
Put it in a comment in the same format as other dependencies. Alternatively, put all dependencies into pyproject, but I don't think this would work yet. Still, this PR is an improvement over the status quo, so I won't reject it, but I still believe splitting dependencies over multiple files is quite confusing. |
I do agree, but I also agree with @Avasam that putting it in I'm going to merge this for now, as I think it's a strict improvement over the status quo, but I'm definitely open to further improvements in the future :) Agreed that putting all dependencies in |
No one likes duplicated configs that have to be kept in sync.

Proposed solution: store it at a single location, then retrieve it when needed. This implementation also requires no parsing.