Skip to main content

Shared pytest configuration for teo-garcia Python templates

Project description

teo-pytest-config-shared

Shared pytest and coverage configuration for teo-garcia Python templates

License: MIT PyPI Python

Part of the @teo-garcia/templates ecosystem


Settings

Setting Value
asyncio_mode auto
testpaths tests
addopts --strict-markers
coverage omit tests/*
coverage fail_under 80

Requirements

  • Python 3.12+
  • pytest 8.3+
  • 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"]
addopts = "--strict-markers"
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


Built by teo-garcia

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

teo_pytest_config_shared-0.1.0.tar.gz (17.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

teo_pytest_config_shared-0.1.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file teo_pytest_config_shared-0.1.0.tar.gz.

File metadata

  • Download URL: teo_pytest_config_shared-0.1.0.tar.gz
  • Upload date:
  • Size: 17.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for teo_pytest_config_shared-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e752345fb47f1b6681264273a362e73aa1b367e6308cdc079628033e5245bb21
MD5 74b853984c2d9346c6687f94b645cc8d
BLAKE2b-256 a346fdc098c770313af6ec22138a893956da7e1efe5972c51e56d2b7a888fc74

See more details on using hashes here.

Provenance

The following attestation bundles were made for teo_pytest_config_shared-0.1.0.tar.gz:

Publisher: publish.yml on teo-garcia/pytest-config-shared

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file teo_pytest_config_shared-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for teo_pytest_config_shared-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 03f30936f8d1b084ef97051f8c6ce7b4c9e7e20f1293c123903a4f8906f2bce4
MD5 cde92abd9f289e83a855feae2cd6f316
BLAKE2b-256 49ee7a316510b02a9ed176e2f386ef4d90b221a9fd9eba724227df6aa64ba917

See more details on using hashes here.

Provenance

The following attestation bundles were made for teo_pytest_config_shared-0.1.0-py3-none-any.whl:

Publisher: publish.yml on teo-garcia/pytest-config-shared

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page