-
-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathpyproject.toml
More file actions
136 lines (120 loc) · 3.43 KB
/
Copy pathpyproject.toml
File metadata and controls
136 lines (120 loc) · 3.43 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
[project]
name = "hikari-miru"
dynamic = ["version"]
description = "A command handler for hikari with a focus on type-safety and correctness."
readme = "README.md"
license = "MIT"
authors = [{ name = "hypergonial", email = "git@hypergonial.com" }]
maintainers = [{ name = "hypergonial", email = "git@hypergonial.com" }]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Framework :: AsyncIO",
"Intended Audience :: Developers",
"Natural Language :: English",
"Topic :: Software Development :: Libraries :: Python Modules",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Topic :: Software Development :: Libraries :: Python Modules",
]
requires-python = ">=3.10"
dependencies = [
"alluka>=0.3.3,<0.4",
"attrs>=25.4.0",
"hikari>=2.5.0",
"colorama>=0.4.6; sys_platform == 'win32'",
]
[project.optional-dependencies]
rest = ["hikari[server]>=2.5.0"]
[dependency-groups]
dev = [
"nox>=2025.11.12",
"pyright==1.1.397",
"pytest>=9.0.2",
"pytest-asyncio>=1.3.0",
"ruff>=0.14",
"slotscheck>=0.19",
"typing-extensions>=4.15",
"hikari-arc>=2.1",
"uv>=0.9",
]
docs = [
"black>=26.1.0",
"griffe-inherited-docstrings>=1.1.2",
"mkdocs>=1.6.1",
"mkdocs-glightbox>=0.5",
"mkdocs-material[imaging]>=9.7",
"mkdocstrings-python>=1.16.10,<2.0", # FIXME: bumping to v2 breaks docs, investigate
]
[project.urls]
Homepage = "https://miru.hypergonial.com"
Documentation = "https://miru.hypergonial.com"
Repository = "https://github.com/hypergonial/hikari-miru"
Issues = "https://github.com/hypergonial/hikari-miru/issues"
Changelog = "https://miru.hypergonial.com/changelogs/v4/"
[tool.ruff]
exclude = ["examples", "docs", "build"]
line-length = 120
target-version = "py310"
[tool.ruff.lint]
select = [
"E",
"F",
"I",
"TCH",
"C",
"N",
"D2",
"D3",
"D415",
"D417",
"D418",
"D419",
"ASYNC",
"Q",
"RSE",
"SIM",
"RUF",
]
ignore = ["F405", "F403", "E501", "D205"]
fixable = ["I", "TCH", "D", "RUF"]
[tool.ruff.lint.isort]
split-on-trailing-comma = false
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.format]
skip-magic-trailing-comma = true
[tool.slotscheck]
strict-imports = true
require-superclass = false
require-subclass = true
exclude-classes = ":.*(Exception|Error|Proto|AutocompleteData)"
[tool.mypy]
ignore_errors = true
[tool.uv]
required-version = "~=0.6"
[tool.pyright]
pythonVersion = "3.10"
typeCheckingMode = "strict"
reportPrivateUsage = false
reportMissingTypeStubs = true
reportUnnecessaryTypeIgnoreComment = "warning"
reportUninitializedInstanceVariable = "error"
reportShadowedImports = "warning"
[tool.pytest.ini_options]
asyncio_default_fixture_loop_scope = "function"
[tool.hatch.build.targets.wheel]
packages = ["miru"]
artifacts = ["pyproject.toml", "README.md", "LICENSE"]
[tool.hatch.version]
path = "miru/internal/about.py"
pattern = '__version__: t\.Final\[str\] = \"(?P<version>[^\"]+)\"'
[build-system]
requires = ["hatchling>=1.14"]
build-backend = "hatchling.build"