-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
100 lines (87 loc) · 2.93 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
[project]
name = "ductile-ui"
version = "0.4.0"
description = "A library provides declarative ui for discord.py"
authors = [{ name = "sushichan044", email = "[email protected]" }]
dependencies = [
"discord-py>=2.2.0",
"pydantic>=2.10.2",
"typing-extensions>=4.12.2",
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Internet",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Utilities",
"Typing :: Typed",
]
keywords = ["discord", "discord.py", "ductile", "ductile-ui"]
license = { file = "LICENSE" }
readme = "README.md"
requires-python = ">= 3.10"
[project.urls]
Repository = "https://github.com/sushi-chaaaan/ductile-ui"
Issues = "https://github.com/sushi-chaaaan/ductile-ui/issues"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.uv]
managed = true
dev-dependencies = [
"pytest>=8.3.4",
"pytest-cov>=6.0.0",
"ruff>=0.8.1",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
[tool.ruff]
# https://qiita.com/yuji38kwmt/items/63e82126076204923520
target-version = "py310"
line-length = 125
[tool.ruff.lint]
ignore = [
"E203",
"D",
"RUF001", # 全角記号など`ambiguous unicode character`も使いたいため
"RUF002", # 全角記号など`ambiguous unicode character`も使いたいため
"RUF003", # 全角記号など`ambiguous unicode character`も使いたいため
"PLC1901", # compare-to-empty-string : `if a == "`のように空文字列で直接比較したいときがあるため
"ERA", # : 役立つこともあるが、コメントアウトしていないコードも警告されるので無視する
"COM812", # recommended by ruff formatter
"ISC001", # recommended by ruff formatter
"UP040", # discord.py can not understand new type syntax
]
select = ["ALL"]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.lint.per-file-ignores]
"./src/app/**" = [
"INP001", # add __init__.py to app directory is too much work
]
"/**/tests/**" = [
"INP001", # add __init__.py to tests directory is too much work
"S101", # allow to use assert in tests
]
"./examples/**" = [
"INP001", # add __init__.py to examples directory is too much work
]
[tool.ruff.format]
# Like Black, use double quotes for strings.
quote-style = "double"
# Like Black, indent with spaces, rather than tabs.
indent-style = "space"
# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false
# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build.targets.wheel]
packages = ["src/ductile"]