Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
101 lines (90 loc) · 3.25 KB
/
Copy pathpyproject.toml
File metadata and controls
101 lines (90 loc) · 3.25 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
[project]
name = "pyanilist"
version = "0.9.0"
description = "A Python wrapper for the AniList API."
authors = [{ name = "Ravencentric", email = "me@ravencentric.cc" }]
readme = "README.md"
license = "MIT"
requires-python = ">=3.10"
keywords = ["anilist", "anime", "async"]
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 = ["httpx>=0.27.2", "msgspec>=0.19.0"]
[project.urls]
Documentation = "https://ravencentric.cc/pyanilist/"
Repository = "https://github.com/Ravencentric/pyanilist"
[dependency-groups]
docs = [
"mkdocs-autorefs>=1.4.1",
"mkdocs-material>=9.6.9",
"mkdocstrings[python]>=0.29.0",
]
lint = ["mypy>=1.15.0", "ruff>=0.11.2"]
test = [
"coverage>=7.7.1",
"pytest>=8.3.5",
"pytest-asyncio>=0.26.0",
"pytest-recording>=0.13.2",
"tomli>=2.1.0",
]
dev = [
{ include-group = "docs" },
{ include-group = "lint" },
{ include-group = "test" },
]
[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
"ASYNC", # https://docs.astral.sh/ruff/rules/#flake8-async-async
]
fixable = ["ALL"]
[tool.ruff.lint.flake8-type-checking]
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", "scripts/**/*.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"]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
[tool.coverage.report]
exclude_also = [
"if TYPE_CHECKING:", # Only used for type-hints
]
[build-system]
build-backend = "hatchling.build"
requires = ["hatchling"]