Python pyproject.toml: Difference between revisions

From wikinotes
Line 33: Line 33:
= Common Configs =
= Common Configs =
<blockquote>
<blockquote>
== unittest ==
<blockquote>
</blockquote><!-- unittest -->
== pytest ==
== pytest ==
<blockquote>
<blockquote>

Revision as of 23:47, 13 February 2024

Documentation

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

Tutorials

pyproject.toml basics https://godatadriven.com/blog/a-practical-guide-to-setuptools-and-pyproject-toml/

Locations

${PROJECT}/pyproject.toml project config

Syntax

Common Configs

unittest

pytest

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