-
Notifications
You must be signed in to change notification settings - Fork 438
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
Make pyre able to read configuration from pyproject.toml
#799
base: main
Are you sure you want to change the base?
Make pyre able to read configuration from pyproject.toml
#799
Conversation
e6aaa24
to
58f2492
Compare
e93dc27
to
b74e8dc
Compare
Is this still a |
@WangGithubUser @cclauss Is this still active? Would love to see this feature. |
@@ -48,6 +48,9 @@ | |||
{ | |||
"is_toplevel_module": true, | |||
"site-package": "typing_inspect" | |||
}, | |||
{ | |||
"site-package": "tomli" |
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.
tomli
should be used only on Python < 3.11 because in Python >= 3.11 tomllib
is in the Standard Library.
Any updates on this ? |
It doesn't look as though @WangGithubUser has been active on github in the last 12 months. There are still people asking for this feature, (myself included) what is a good way forward? |
Pre-submission checklist
pip install -r requirements-dev.txt && pre-commit install
pre-commit run
Summary
This PR resolves #695.
I'm not sure we should look for
pyproject.toml
silently when.pyre_configuration
is not valid, or only look for it when a flag provided.But, I prefer the first resoulution because the second need to provide a flag in all runs.However, I want to hear you opinion.Test Plan
Look for if the unittest passed.
As the unittest is not avalible this time(see footnote), I ran test in my local machine with python3.10:
Footnote:
Test
fails due tomatch
statement is incompatible with Python3.8 and 3.9, and is not related to this PR.To make this easier to review and avoid confliting, I will rebase this PR on the top of main if thematch
statement refactored withif-elif-else
statement but not do it in this PR..pyre_configuration
at the root of this project after the nightly version of Pyre with this diff deployed.I intergrated configurations intopyproject.toml
.