You can use pyproject.toml for the tox configuration too:
[tool.tox]
legacy_tox_ini = """<tox.ini content here>""" [tool.tox]
legacy_tox_ini = """<tox.ini content here>"""