You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think most people will use the nox.project.load_toml function (added in #811) with their pyproject.toml. In fact, the name of the function itself suggests loading from a TOML.
Not a Nox maintainer or anything, but FYI, you can just do Path("pyproject.toml") rather than the unnecessary Path.cwd() / "pyproject.toml", since filename doesn't require absolute paths (as the example indeed shows).
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.
Not a Nox maintainer or anything, but FYI, you can just do Path("pyproject.toml") rather than the unnecessary Path.cwd() / "pyproject.toml", since filename doesn't require absolute paths (as the example indeed shows).
@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: