teo-pytest-config-shared
Shared pytest and coverage configuration for teo-garcia Python templates
Part of the @teo-garcia/templates ecosystem
Settings
| Setting | Value |
|---|---|
| asyncio_mode | auto |
| testpaths | tests |
| strict_markers | true |
| coverage omit | tests/* |
| coverage fail_under | 80 |
Requirements
- Python 3.12+
- pytest 9.0+
- pytest-cov 6.0+
Usage
Install as a dev dependency:
uv add --dev teo-pytest-config-shared
Get the path to the installed config file:
uv run teo-pytest-config-path
pytest does not support config inheritance natively. The recommended pattern is to copy the canonical settings into your pyproject.toml and extend them:
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
strict_markers = true
markers = ["e2e: end-to-end tests requiring live services"]
[tool.coverage.run]
source = ["app"]
omit = ["tests/*"]
[tool.coverage.report]
show_missing = true
fail_under = 80
Coverage settings belong in pyproject.toml, .coveragerc, setup.cfg, or
tox.ini; the exported pytest.ini intentionally contains only pytest-native
options. Use teo-pytest-config-path to inspect the canonical pytest baseline
whenever you update your project config.
Related Packages
| Package | Description |
|---|---|
teo-ruff-config-shared |
Ruff lint and format settings |
teo-mypy-config-shared |
mypy type-checking settings |
License
MIT
Metadata
Release files for teo-pytest-config-shared 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| teo_pytest_config_shared-0.2.0.tar.gz | 19.1 kB | With provenance | Details for teo_pytest_config_shared-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| teo_pytest_config_shared-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for teo_pytest_config_shared-0.2.0-py3-none-any.whl |
Total release size: 22.7 kB
Security for teo-pytest-config-shared 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.