-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
110 lines (97 loc) · 3.35 KB
/
Copy pathpyproject.toml
File metadata and controls
110 lines (97 loc) · 3.35 KB
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
[project]
name = "seadex"
version = "0.7.2"
description = "Python wrapper for the SeaDex API."
authors = [{ name = "Ravencentric", email = "me@ravencentric.cc" }]
readme = "README.md"
license = "MIT"
requires-python = ">=3.10"
keywords = ["seadex", "anime", "releases.moe"]
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 = [
"atomicwriter>=0.2.5",
"httpx>=0.27.2",
"msgspec>=0.19.0",
]
[project.optional-dependencies]
cli = ["cyclopts>=3.9.0", "humanize>=4.12.2", "rich>=13.9.4", "torf>=4.2.7"]
torrent = ["torf>=4.2.7"]
[project.scripts]
seadex = "seadex.__main__:app"
[project.urls]
Documentation = "https://ravencentric.cc/seadex/"
Repository = "https://github.com/Ravencentric/seadex"
[dependency-groups]
docs = [
"mkdocs-autorefs>=1.3.1",
"mkdocs-material>=9.6.5",
"mkdocstrings[python]>=0.28.1",
]
test = [
"coverage>=7.6.12",
"pytest>=8.3.4",
"pytest-httpx>=0.34.0",
"tomli>=2.0.1",
]
lint = ["mypy>=1.16.0", "ruff>=0.11.13", "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", # https://docs.astral.sh/ruff/rules/#isort-i
"DTZ", # https://docs.astral.sh/ruff/rules/#flake8-datetimez-dtz
"RUF", # https://docs.astral.sh/ruff/rules/#ruff-specific-rules-ruf
"UP", # https://docs.astral.sh/ruff/rules/#pyupgrade-up
"N", # https://docs.astral.sh/ruff/rules/#pep8-naming-n
"D4", # https://docs.astral.sh/ruff/rules/#pydocstyle-d
"B", # https://docs.astral.sh/ruff/rules/#flake8-bugbear-b
"FBT", # https://docs.astral.sh/ruff/rules/#flake8-boolean-trap-fbt
"C4", # https://docs.astral.sh/ruff/rules/#flake8-comprehensions-c4
"EM", # https://docs.astral.sh/ruff/rules/#flake8-errmsg-em
"ISC", # https://docs.astral.sh/ruff/rules/multi-line-implicit-string-concatenation/
"PIE", # https://docs.astral.sh/ruff/rules/#flake8-pie-pie
"RET", # https://docs.astral.sh/ruff/rules/#flake8-raise-rse
"PL", # https://docs.astral.sh/ruff/rules/#pylint-pl
"E", # https://docs.astral.sh/ruff/rules/#pycodestyle-e-w
"W", # https://docs.astral.sh/ruff/rules/#pycodestyle-e-w
"FURB", # https://docs.astral.sh/ruff/rules/#refurb-furb
"TC", # https://docs.astral.sh/ruff/rules/#flake8-type-checking-tc
]
fixable = ["ALL"]
ignore = ["PLC0415"]
[tool.ruff.lint.flake8-type-checking]
exempt-modules = ["typing", "cyclopts.types"]
runtime-evaluated-base-classes = ["msgspec.Struct"]
[tool.ruff.lint.extend-per-file-ignores]
"tests/*" = ["D", "FBT", "PL", "C416"]
[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"]