[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[project]
|
|
name = "dlhdhr"
|
|
dynamic = ["version"]
|
|
description = ''
|
|
readme = "README.md"
|
|
requires-python = ">=3.11"
|
|
license = "MIT"
|
|
keywords = []
|
|
authors = [
|
|
{ name = "Brett Langdon", email = "me@brett.is" },
|
|
]
|
|
classifiers = [
|
|
"Development Status :: 4 - Beta",
|
|
"Programming Language :: Python",
|
|
"Programming Language :: Python :: 3.11",
|
|
"Programming Language :: Python :: 3.12",
|
|
"Programming Language :: Python :: Implementation :: CPython",
|
|
"Programming Language :: Python :: Implementation :: PyPy",
|
|
]
|
|
dependencies = [
|
|
"starlette~=0.34.0",
|
|
"httpx~=0.25.2",
|
|
"uvicorn~=0.24.0",
|
|
"uvloop~=0.19.0",
|
|
"httptools~=0.6.1",
|
|
"lxml~=4.9.3",
|
|
"cssselect~=1.2.0",
|
|
"m3u8~=4.0.0",
|
|
]
|
|
|
|
[project.urls]
|
|
Documentation = "https://github.com/unknown/dlhdhr#readme"
|
|
Issues = "https://github.com/unknown/dlhdhr/issues"
|
|
Source = "https://github.com/unknown/dlhdhr"
|
|
|
|
[project.scripts]
|
|
dlhdhr = "dlhdhr.__main__:main"
|
|
|
|
[tool.hatch.version]
|
|
path = "src/dlhdhr/__about__.py"
|
|
|
|
[tool.hatch.envs.default]
|
|
dependencies = [
|
|
"coverage[toml]>=6.5",
|
|
"pytest",
|
|
]
|
|
|
|
[[tool.hatch.envs.all.matrix]]
|
|
python = ["3.11", "3.12"]
|
|
|
|
[tool.hatch.envs.lint]
|
|
detached = true
|
|
dependencies = [
|
|
"black>=23.1.0",
|
|
"mypy>=1.0.0",
|
|
"ruff>=0.0.243",
|
|
]
|
|
[tool.hatch.envs.lint.scripts]
|
|
typing = "mypy --install-types --non-interactive {args:src/dlhdhr}"
|
|
style = [
|
|
"ruff {args:.}",
|
|
"black --check --diff {args:.}",
|
|
]
|
|
fmt = [
|
|
"black {args:.}",
|
|
"ruff --fix {args:.}",
|
|
"style",
|
|
]
|
|
all = [
|
|
"style",
|
|
"typing",
|
|
]
|
|
|
|
[tool.black]
|
|
target-version = ["py311"]
|
|
line-length = 120
|
|
skip-string-normalization = true
|
|
|
|
[tool.ruff]
|
|
target-version = "py311"
|
|
line-length = 120
|
|
select = [
|
|
"A",
|
|
"ARG",
|
|
"B",
|
|
"C",
|
|
"DTZ",
|
|
"E",
|
|
"EM",
|
|
"F",
|
|
"FBT",
|
|
"I",
|
|
"ICN",
|
|
"ISC",
|
|
"N",
|
|
"PLC",
|
|
"PLE",
|
|
"PLR",
|
|
"PLW",
|
|
"Q",
|
|
"RUF",
|
|
"S",
|
|
"T",
|
|
"TID",
|
|
"UP",
|
|
"W",
|
|
"YTT",
|
|
]
|
|
ignore = [
|
|
# Allow non-abstract empty methods in abstract base classes
|
|
"B027",
|
|
# Allow boolean positional values in function calls, like `dict.get(... True)`
|
|
"FBT003",
|
|
# Ignore checks for possible passwords
|
|
"S105", "S106", "S107",
|
|
# Ignore complexity
|
|
"C901", "PLR0911", "PLR0912", "PLR0913", "PLR0915",
|
|
]
|
|
unfixable = [
|
|
# Don't touch unused imports
|
|
"F401",
|
|
]
|
|
|
|
[tool.ruff.isort]
|
|
known-first-party = ["dlhdhr"]
|
|
|
|
[tool.ruff.flake8-tidy-imports]
|
|
ban-relative-imports = "all"
|
|
|
|
[tool.ruff.per-file-ignores]
|
|
# Tests can use magic values, assertions, and relative imports
|
|
"tests/**/*" = ["PLR2004", "S101", "TID252"]
|
|
|