-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Test and document MYPY_FORCE_COLOR
/FORCE_COLOR
#13815
Comments
For testing these environment variables, we could take inspiration from how |
We should definitely document it, but I wouldn't sweat too much about testing it, end-to-end mypy tests are slow anyway |
Yeah the docs part of this is more important, for sure. |
@AlexWaygood hey, could you explain where should documentation/tests be added for these variables? |
Can I add a sub heading under "Using mypy with an existing codebase" as introduced force color to output..and move with testing part...please advise...this is my first comment here . |
Hmm... interesting question. It should be documented somewhere in the "Configuring and running mypy" section of the docs. But now that I look, there doesn't seem to be a dedicated page or section for environment variables at the moment -- Maybe we should add a new documentation page for environment variables. @hauntsaninja, what do you think? As @hauntsaninja says, maybe don't worry about adding tests for now -- other environment variables appear to be similarly untested, and it might be more trouble than it's worth. Let's focus on docs for now.
No, I don't think that would be a good place to add documentation for these variables :) |
Thank you for your reply..please inform where to add the environmental variable.i am ready to contribute my first open source contribution and get confident to move others.. i went through the termcolor module what you mentioned above. it looks doable to include a test function if we build similar def function test_environmental_variable() in a python file.. |
i want to contribute so please assign me a issue which is good for me.. |
Thanks @AmberAnsari89! Mypy can be quite a complex codebase for somebody who's completely new to open source, however. You might like to consider helping out over at typeshed, instead :) We've got lots of incomplete stubs over at typeshed where we'd welcome PRs. For example, there's lots of functions in this file that don't currently have annotations for parameters or return types. If you'd like to help fill out the annotations in that file (or any other file in typeshed where we don't currently have annotations!), that would be great! |
Thanks, I'll take a look and get back to you for help.
Thanks you again..
…On Mon, 10 Oct, 2022, 2:16 am Alex Waygood, ***@***.***> wrote:
Thanks @AmberAnsari89 <https://github.com/AmberAnsari89>! Mypy's can be
quite a complex codebase for somebody who's completely new to open source,
however. You might like to consider helping out over at typeshed
<https://github.com/python/typeshed>, instead :)
We've got lots of incomplete stubs over at typeshed where we'd welcome
PRs. For example, there's lots of functions in this file
<https://github.com/python/typeshed/blob/master/stubs/fpdf2/fpdf/drawing.pyi>
that don't currently have annotations for parameters or return types. If
you'd like to help fill out the annotations in that file (or any other file
in typeshed where we don't currently have annotations!), that would be
great!
—
Reply to this email directly, view it on GitHub
<#13815 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKUXK4UZN52AR3F4RUHUJ5LWCMVIPANCNFSM6AAAAAAQ46UFIA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@AlexWaygood, I'ld love to contribute to typeshed. Please guide me what is required in return types and parameters in drawing.pyi . |
@darshanip great! There's lots of different ways to go about working out what the type annotation should be for a certain parameter or return type. The More info in our guide for contributors :) |
Are there any updates on this? |
None that I'm aware of. If there were any updates, you'd find them in this issue thread. What kind of updates are you looking for here? |
See: - python/mypy#13815 - python/mypy#13817 This seems to be working in in all jobs *except* for the Python 3.7 and 3.8 jobs on macOS.
Feature
MYPY_FORCE_COLOR
is an environment variable that can be used to, well, force color in mypy's output. It's a useful configuration setting that's used by several projects.The environment variable is currently undocumented and untested. If #13814 is merged, people will also be able to use
FORCE_COLOR
to specify the same thing, and that will also be undocumented and untested.It would be good to add docs and tests for these environment variables.
The text was updated successfully, but these errors were encountered: