Ops Pyproject Toml Pytest

Sub-skill of ops-pyproject-toml: pytest (+2).

vamseeachanta Updated

File contents

pytest (+2)

pytest

[tool.pytest.ini_options]
minversion = "7.0"
testpaths = ["tests"]
addopts = [
    "-v",                    # Verbose
    "--tb=short",           # Short traceback
    "-ra",                  # Show extra summary
    "--strict-markers",     # Error on unknown markers
    "--cov=src",           # Coverage

*See sub-skills for full details.*

## ruff (Modern Linter)


```toml
[tool.ruff]
line-length = 88
target-version = "py310"

[tool.ruff.lint]
select = ["E", "W", "F", "I", "B", "C4", "UP"]
ignore = ["E501"]

[tool.ruff.format]
quote-style = "double"

mypy (Type Checker)

[tool.mypy]
python_version = "3.10"
strict = true
warn_return_any = true

[[tool.mypy.overrides]]
module = ["pandas.*", "numpy.*"]
ignore_missing_imports = true

vamseeachanta/workspace-hub/tree/main/.agents/skills/_archive/operations/devtools/pyproject-toml/pytest commit f63a5c1cf7

Frequently asked questions

npx skillmds@latest add vamseeachanta/ops-pyproject-toml-pytest