-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
108 lines (95 loc) · 3.12 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
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
[project]
name = "seadex"
version = "0.6.3"
description = "Python wrapper for the SeaDex API."
authors = [{ name = "Ravencentric", email = "[email protected]" }]
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.3",
"httpx>=0.27.2",
"natsort>=8.4.0",
"pydantic>=2.10.6",
"stringenum>=0.6.0",
"torf>=4.2.7",
]
[project.optional-dependencies]
cli = ["cyclopts>=3.9.0", "pyperclip>=1.9.0", "rich>=13.9.4"]
[project.scripts]
seadex = "seadex.__main__:app"
[project.urls]
Documentation = "https://seadex.ravencentric.cc"
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.15.0", "ruff>=0.9.7", "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
"FURB", # https://docs.astral.sh/ruff/rules/#refurb-furb
]
fixable = ["ALL"]
[tool.ruff.lint.extend-per-file-ignores]
"tests/*" = ["D", "FBT", "PL"]
[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.mypy.overrides]]
module = ["torf", "torf.*", "pyperclip", "pyperclip.*"]
ignore_missing_imports = true
[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"]