nose2
nose2 copied to clipboard
Support configuring through pyproject.toml
The tool
table section of PEP 518 says that tools should store their name in [tool.<pypiname>]
in pyproject.toml
.
I need to look at the TOML spec again, but I think it should be pretty reasonably possible to put the contents of nose2.cfg
into [tool.nose2]
in pyproject.toml
We'll have to pull in a TOML parser for this, but it looks like toml
supports old pythons, so it won't be much of an issue.
I'd be happy to review a PR adding support. (I'm unlikely to work on this myself unless there's an indication of general demand.)
It’s more of a “it’s the correct way to do it” thing, i.e. examples should be updated and the old way should be deprecated. I’m not using nose2, I’m just maintaining a list of projects that have support already.
Gotcha. In that case, thanks for being a good citizen and flagging this for me. 👍
Since nose2 is a "maintenance first" project at this stage in its life, I just try to set clear expectations on these things.
Definitely want to see this happen.