-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
81 lines (71 loc) · 1.89 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
[project]
name = "nzb"
version = "0.4.2"
description = "A spec compliant parser and meta editor for NZB files."
readme = "README.md"
license = "MIT"
requires-python = ">=3.10"
keywords = ["nzb", "usenet", "parser"]
classifiers = [
"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 = ["msgspec>=0.19.0", "natsort>=8.4.0", "xmltodict>=0.14.2"]
[project.urls]
Homepage = "https://nzb.ravencentric.cc"
Documentation = "https://nzb.ravencentric.cc"
Repository = "https://github.com/Ravencentric/nzb"
[dependency-groups]
docs = [
"mkdocs-autorefs>=1.3.0",
"mkdocs-material>=9.5.50",
"mkdocstrings[python]>=0.27.0",
]
test = [
"coverage[toml]>=7.6.10",
"pytest>=8.3.4",
"rnzb>=0.3.1",
"tomli>=2.2.1",
]
lint = [
"mypy>=1.14.1",
"ruff>=0.9.3",
"types-xmltodict>=0.14.0.20241009",
"typing-extensions>=4.12.2",
]
dev = [
{ include-group = "docs" },
{ include-group = "test" },
{ include-group = "lint" },
]
[tool.ruff]
line-length = 120
[tool.ruff.lint]
extend-select = ["I", "RUF", "UP", "N", "PERF", "B", "D4"]
fixable = ["ALL"]
[tool.ruff.lint.extend-per-file-ignores]
"tests/*" = ["D"]
[tool.ruff.lint.isort]
required-imports = ["from __future__ import annotations"]
[tool.mypy]
strict = true
pretty = true
files = ["src/**/*.py", "tests/**/*.py"]
enable_error_code = ["ignore-without-code"]
[tool.pytest.ini_options]
addopts = ["-ra", "--showlocals", "--strict-markers", "--strict-config"]
filterwarnings = ["error"]
log_cli_level = "info"
testpaths = ["tests"]
[tool.coverage.report]
exclude_also = [
"if TYPE_CHECKING:", # Only used for type-hints
]
[build-system]
build-backend = "hatchling.build"
requires = ["hatchling"]