Files
plex-playlist/backend/pyproject.toml
Cliff Hill 0961001998
Some checks failed
CI/CD Pipeline / Backend Tests (Python) (push) Failing after 18m27s
CI/CD Pipeline / Frontend Tests (TypeScript/Vue) (push) Failing after 18m22s
CI/CD Pipeline / Integration Tests (push) Has been skipped
More adjustments.
Signed-off-by: Cliff Hill <xlorep@darkhelm.org>
2025-10-21 00:19:59 -04:00

119 lines
2.4 KiB
TOML

[build-system]
build-backend = "hatchling.build"
requires = ["hatchling"]
[dependency-groups]
dev = [
"ruff>=0.6.0",
"pyright>=1.1.380",
"darglint>=1.8.1",
"pytest>=7.4.0",
"pytest-asyncio>=0.21.0",
"pytest-cov>=4.1.0",
"typeguard>=4.1.0",
"httpx>=0.25.0", # For testing async HTTP calls
"pytest-mock>=3.12.0"
]
[project]
dependencies = [
"fastapi>=0.104.0",
"uvicorn[standard]>=0.24.0",
"sqlalchemy>=2.0.0",
"pydantic>=2.5.0"
]
description = "Plex Playlist Management API"
name = "plex-playlist-backend"
requires-python = ">=3.12"
version = "0.1.0"
[project.optional-dependencies]
dev = [
"ruff>=0.6.0",
"pyright>=1.1.380",
"darglint>=1.8.1",
"pytest>=7.4.0",
"pytest-asyncio>=0.21.0",
"pytest-cov>=4.1.0",
"typeguard>=4.1.0",
"httpx>=0.25.0", # For testing async HTTP calls
"pytest-mock>=3.12.0"
]
[tool.coverage]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:"
]
[tool.coverage.run]
omit = [
"*/tests/*",
"*/venv/*",
"*/.venv/*",
"*/node_modules/*",
"*/migrations/*"
]
source = ["src"]
# Darglint configuration for backend
[tool.darglint]
docstring_style = "google"
strictness = "short"
[tool.hatch.build.targets.wheel]
packages = ["src/backend"]
[tool.pytest.ini_options]
addopts = [
"--strict-markers",
"--strict-config",
"--verbose",
"--cov=backend",
"--cov-report=term-missing:skip-covered",
"--cov-report=html",
"--cov-report=xml",
"--typeguard-packages=backend"
]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"integration: marks tests as integration tests"
]
python_classes = ["Test*"]
python_files = ["test_*.py", "*_test.py"]
python_functions = ["test_*"]
testpaths = ["tests"]
[tool.ruff]
line-length = 88
src = ["src"]
target-version = "py313"
[tool.ruff.lint]
ignore = [
"E501", # line too long, handled by black
"B008", # do not perform function calls in argument defaults
"B903" # Use `collections.abc.MutableMapping` instead of `typing.MutableMapping`
]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"ARG", # flake8-unused-arguments
"SIM", # flake8-simplify
"TCH" # flake8-type-checking
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["ARG", "S101"]