Python pyproject.toml

From wikinotes
Revision as of 15:19, 13 February 2021 by Will (talk | contribs) (→‎pytest)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Documentation

PEP-518 https://www.python.org/dev/peps/pep-0518/

Locations

${PROJECT}/pyproject.toml project config

Syntax

Common Configs

pytest

# pyproject.toml
[tool.pytest.ini_options]
python_files = *.py
testpaths = ["tests/unit", "tests/integration"]
norecursedirs = tests/integration/resources