-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
80 lines (72 loc) · 2.06 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
[project]
name = "python_genshin_artifact"
requires-python = ">=3.9"
version = "1.0.12"
authors = [
{name = "luoshuijs", email = "[email protected]"},
{name = "xtaodada", email = "[email protected]"},
{name = "kotori", email = "[email protected]"}
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
'Programming Language :: Python :: 3.13',
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX :: Linux",
"Operating System :: Microsoft :: Windows",
"Operating System :: MacOS",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: System :: Filesystems",
"Framework :: AnyIO",
]
dynamic = [
"license",
"readme",
"version"
]
[tool.maturin]
module-name = "python_genshin_artifact._python_genshin_artifact"
bindings = "pyo3"
#python-source = "python"
[build-system]
requires = ["maturin>=1.0,<2.0"]
build-backend = "maturin"
[dependency-groups]
linting = [
'ruff',
]
[tool.pytest.ini_options]
log_cli = true
log_cli_level = "INFO"
log_cli_format = "%(message)s"
log_cli_date_format = "%Y-%m-%d %H:%M:%S"
[tool.black]
include = '\.pyi?$'
line-length = 120
target-version = ["py38"]
[tool.ruff]
line-length = 120
[tool.ruff.lint]
extend-select = [
"Q", # flake8-quotes
"C90", # complex-structure
"I", # isort
"F", # pyflakes
"B", # flake8-bugbear
"C4", # flake8-comprehensions
]
extend-ignore = [
"E721", # using type() instead of isinstance() - we use this in tests
]
mccabe = { max-complexity = 13 }
isort = { known-first-party = ["python_genshin_artifact", "tests"] }