-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
83 lines (71 loc) · 1.92 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
[project]
name = "pynyaa"
version = "2.0.0"
description = "Turn nyaa.si torrent pages into neat Python objects"
authors = [{ name = "Ravencentric", email = "[email protected]" }]
readme = "README.md"
license = { file = "UNLICENSE" }
requires-python = ">=3.10"
keywords = ["anime", "nyaa", "nyaa.si", "torrent", "python"]
classifiers = [
"License :: OSI Approved :: The Unlicense (Unlicense)",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Typing :: Typed",
]
dependencies = [
"beautifulsoup4>=4.12.3",
"httpx>=0.27.2",
"lxml>=5.3",
"pydantic>=2.9.2",
"strenum; python_full_version<'3.11'",
"torf>=4.2.7",
]
[project.urls]
Homepage = "https://pynyaa.ravencentric.cc"
Documentation = "https://pynyaa.ravencentric.cc"
Repository = "https://github.com/Ravencentric/pynyaa"
[project.scripts]
pynyaa = "pynyaa.__main__:main"
[tool.uv]
dev-dependencies = [
"coverage>=7.6.1",
"mypy>=1.11.2",
"pytest>=8.3.3",
"pytest-asyncio>=0.24.0",
"ruff>=0.6.7",
"types-beautifulsoup4>=4.12.0.20240907",
"typing-extensions>=4.12.2",
"mkdocs-material>=9.5.36",
"mkdocs-autorefs>=1.2.0",
"mkdocstrings[python]>=0.26.1",
]
[tool.pytest.ini_options]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
[tool.ruff]
line-length = 120
[tool.ruff.lint]
extend-select = ["I"]
fixable = ["ALL"]
[tool.ruff.lint.isort]
required-imports = ["from __future__ import annotations"]
[tool.mypy]
strict = true
pretty = true
exclude = "tests/"
[[tool.mypy.overrides]]
module = ["torf"]
ignore_missing_imports = true
[tool.coverage.run]
omit = ["src/pynyaa/_version.py", "src/pynyaa/_compat.py", "tests/*"]
[tool.coverage.report]
exclude_also = [
"if TYPE_CHECKING:", # Only used for type-hints
]
[build-system]
build-backend = "hatchling.build"
requires = ["hatchling"]