unai 4bf59efd6f
Some checks failed
CI/CD Pipeline / test-and-lint (push) Failing after 38s
CI/CD Pipeline / publish-container (push) Has been skipped
Update Ruff configuration to exclude tests from linting
2026-02-01 18:49:02 +00:00

48 lines
1.1 KiB
TOML

[tool.poetry]
name = "m3u_list_builder"
version = "0.0.0"
description = "Python tool to build M3U lists from various sources."
authors = ["Unai Blazquez <unaibg2000@gmail.com>"]
readme = "README.md"
packages = [{ include = "m3u_list_builder", from = "src" }]
[tool.poetry.dependencies]
python = "^3.14"
pydantic-settings = "^2.12.0"
requests = "^2.32.5"
[tool.poetry.group.dev.dependencies]
pytest = "^9.0.2"
pytest-cov = "^7.0.0"
ruff = "^0.14.14"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
# --- Configuración de Ruff (Linter & Formatter) ---
[tool.ruff]
line-length = 88
target-version = "py314"
exclude = ["tests"]
[tool.ruff.lint]
# E/F: Errores base, I: Imports (isort), D: Docstrings
select = ["E", "F", "I", "D"]
ignore = [
"D100",
"D104",
] # Ignorar docstring en modulos/paquetes vacíos si se desea
[tool.ruff.lint.pydocstyle]
convention = "google" # Estilo de docstring (Google, NumPy o PEP 257)
# --- Configuración de Coverage ---
[tool.coverage.run]
source = ["src"]
branch = true
[tool.coverage.report]
fail_under = 80 # CI falla si el coverage es menor al 80%
show_missing = true