-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
112 lines (95 loc) · 2.09 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
109
110
111
112
[build-system]
requires = ["hatchling>=1.20.0"]
build-backend = "hatchling.build"
[project]
name = "bgm-tv-wiki"
version = "0.0.29"
description = "bgm.tv wiki syntax parser"
authors = [
{ name = "trim21", email = "[email protected]" },
]
readme = 'readme.md'
license = { text = 'MIT' }
classifiers = [
'Development Status :: 4 - Beta',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3 :: Only',
]
requires-python = "~=3.10"
dependencies = [
'typing-extensions>=4.7.0'
]
[project.optional-dependencies]
dev = [
"pytest==8.3.3",
"pytest-github-actions-annotate-failures==0.2.0",
"coverage==7.6.4",
'pre-commit==4.0.1; python_version >= "3.9"',
'mypy==1.13.0; python_version >= "3.9"',
'pyyaml>=6,<7',
'types-PyYAML'
]
[project.urls]
[tool.hatch.build.targets.sdist]
sources = ['src/']
include = ['src/']
[tool.hatch.build.targets.wheel]
packages = ["src/bgm_tv_wiki"]
[tool.hatch.build.targets.wheel.hooks.cython]
enable-by-default = false
dependencies = ["hatch-cython<1"]
[tool.hatch.build.targets.wheel.hooks.cython.options]
directives = { boundscheck = false, nonecheck = false, language_level = 3, binding = true }
src = "bgm_tv_wiki"
[tool.cibuildwheel]
before-build = "python cleanup.py"
skip = "pp* *musllinux*"
[tool.cibuildwheel.environment]
HATCH_BUILD_HOOKS_ENABLE = "1"
[tool.pytest.ini_options]
addopts = '-rav -Werror'
[tool.mypy]
python_version = "3.10"
disallow_untyped_defs = true
ignore_missing_imports = true
warn_return_any = false
warn_unused_configs = true
show_error_codes = true
[tool.black]
target-version = ['py310']
[tool.ruff]
target-version = "py310"
[tool.ruff.lint]
extend-select = ['UP', 'I']
ignore = [
'PLW2901',
'PLR0911',
'INP001',
'N806',
'N802',
'N803',
'E501',
'BLE001',
'RUF002',
'S324',
'S301',
'S314',
'S101',
'N815',
'S104',
'C901',
'PLR0913',
'RUF001',
'SIM108',
'TCH003',
'RUF003',
'RET504',
'TRY300',
'TRY003',
'TRY201',
'TRY301',
'PLR0912',
'PLR0915',
'PLR2004',
'PGH003',
]