-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Add a function to search for pyproject.toml in a project root #16965
Conversation
This comment has been minimized.
This comment has been minimized.
add2786
to
65324b8
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
d04de61
to
70f00d6
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
dear @ilevkivskyi, can you take a look, please? |
Maybe, dear @JukkaL, @hauntsaninja, or @sobolevn could kindly take a look? |
please, any feedback? |
Hello? Could the PR be reviewed, please? Dear @JukkaL, @hauntsaninja, @cdce8p, or @sobolevn? |
Sorry, I don't have context of this PR, so I cannot review :( |
Issue #10613 describes it. I've also changed the PR body. I'd really appreciate it; having the |
rebased it on the most recent upstream |
According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅ |
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 am not a big expert on pyproject.toml
and don't know how it works in other tools. But I don't see anything obviously wrong in this PR, so let's try it.
Oh, great! Thanks a lot! I'll prepare the docs update PR then, so people can start use it |
This doesn't handle precedence correctly / doesn't handle other mypy configuration files. What do you think of #18482 ? |
(Explain how this PR changes mypy.)
Here's a solution to fix #10613. The tests are covered.
It adds the functionality of searching
pyproject.toml
recursively from the current directory up to a project root (directory with either.git
or.hg
) tomypy