Files
plex-playlist/backend/pyproject.toml
Cliff Hill fdbce98be6
Some checks failed
Tests / Build and Push CICD Image (push) Successful in 49m20s
Tests / TOML Syntax Check (push) Successful in 30s
Tests / Mixed Line Ending Check (push) Successful in 26s
Tests / TOML Formatting Check (push) Successful in 41s
Tests / Ruff Linting (push) Successful in 25s
Tests / Ruff Format Check (push) Successful in 29s
Tests / Pyright Type Check (push) Failing after 37s
Tests / Darglint Docstring Check (push) Successful in 38s
Tests / No Docstring Types Check (push) Successful in 25s
Tests / ESLint Check (push) Successful in 59s
Tests / YAML Syntax Check (push) Successful in 7m5s
Tests / Prettier Format Check (push) Successful in 52s
Tests / Backend Tests (push) Failing after 31s
Tests / TypeScript Type Check (push) Successful in 2m12s
Tests / Backend Doctests (push) Successful in 1m29s
Tests / Integration Tests (push) Has been skipped
Tests / End-to-End Tests (push) Has been skipped
Tests / Frontend Tests (push) Failing after 1m36s
Tests / End of File Check (push) Successful in 9m45s
Tests / TSDoc Lint Check (push) Failing after 13m8s
Tests / Trailing Whitespace Check (push) Failing after 13m13s
CICD now is aligned with pre-commit.
Signed-off-by: Cliff Hill <xlorep@darkhelm.org>
2025-10-30 10:02:17 -04:00

130 lines
3.0 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",
# File format and linting tools
"pre-commit>=3.0.0", # For running pre-commit hooks in CI
"pyyaml>=6.0",
"yamllint>=1.35.0",
"toml-sort>=0.23.0",
"language-formatters-pre-commit-hooks>=2.14.0", # For pretty-format-toml
"xdoctest>=1.1.0" # For doctest support
]
[project]
authors = [{name = "DarkHelm", email = "darkhelm@darkhelm.org"}]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.13"
]
description = "Backend service for Plex playlist management"
keywords = ["plex", "playlist", "media", "management"]
license = "MIT"
name = "plex-playlist-backend"
readme = "../README.md"
requires-python = ">=3.13"
version = "0.1.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]
include = [
"src/backend/**/*.py",
"src/backend/py.typed"
]
[tool.hatch.build.targets.wheel]
packages = ["src/backend"]
[tool.hatch.version]
path = "src/backend/__init__.py"
[tool.pytest.ini_options]
addopts = [
"--strict-markers",
"--strict-config",
"--verbose",
"--cov=backend",
"--cov-report=term-missing:skip-covered",
"--cov-report=html",
"--cov-report=xml"
]
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.isort]
known-first-party = ["backend"]
section-order = ["future", "standard-library", "third-party", "first-party", "local-folder"]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["ARG", "S101"]