-
-
Notifications
You must be signed in to change notification settings - Fork 158
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
Default value for filename
in nox.project.load_toml
#843
Comments
Not a Nox maintainer or anything, but FYI, you can just do |
The function was actually added to make loading PEP 723 files easier, since it's a pretty trivial wrapper over tomllib/tomli otherwise. But defaulting to pyprojec.toml doesn't seem unreasonable. |
@CAM-Gerlach Yeah. Maybe I've been too much into PEP 20, line 2: Explicit is better than implicit. 😄 |
Well, as I am a PEP editor, I can say that despite the widespread misconception to the contrary, PEP 20 (the Zen of Python) was never intended to be taken seriously as a set of rules for the language, as opposed to one core dev's tongue in cheek ideas :) |
How would this feature be useful?
I think most people will use the
nox.project.load_toml
function (added in #811) with theirpyproject.toml
. In fact, the name of the function itself suggests loading from a TOML.Describe the solution you'd like
I would update the function's signature:
nox/nox/project.py
Line 33 in e0868b6
with:
or set the default to
None
and evaluate the file location frompwd
:Describe alternatives you've considered
Alternatively, the path to the
pyproject.toml
can be set vianox.options
.Anything else?
No response
The text was updated successfully, but these errors were encountered: