tox-dev / toml-fmt

Format Python TOML configurations.
MIT License
3 stars 1 forks source link

`tox.toml` is hidden in a subdir #11

Closed mtelka closed 4 days ago

mtelka commented 4 days ago

The pyproject_fmt-2.4.3 sdist contains tox.toml hidden in the pyproject-fmt sub-directory and so tox fails unexpectedly in the top level directory:

$ wget https://files.pythonhosted.org/packages/source/p/pyproject_fmt/pyproject_fmt-2.4.3.tar.gz
$ gtar xf pyproject_fmt-2.4.3.tar.gz
$ cd pyproject_fmt-2.4.3
$ tox -l
ROOT: No tox.ini or setup.cfg or pyproject.toml or tox.toml found, assuming empty tox.ini at /tmp/test/pyproject_fmt-2.4.3
$
gaborbernat commented 4 days ago

This is expected. This project moved into a monorepo and accordingly, you are expected to run the commands for pyproject-fmt from within that folder.

mtelka commented 3 days ago

Shouldn't be the pyproject.toml file located in the pyproject-fmt subdir too?

Thank you.

gaborbernat commented 3 days ago

There's one both. The root is just holding the ruff config.