-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpyproject.toml
149 lines (134 loc) · 3.54 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[project]
name = "arclet-alconna"
description = "A High-performance, Generality, Humane Command Line Arguments Parser Library."
authors = [
{name = "RF-Tar-Railt", email = "[email protected]"},
]
dependencies = [
"typing-extensions>=4.5.0",
"nepattern<1.1.0,>=1.0.1",
"tarina<0.7.0,>=0.6.8",
"elaina-segment>=0.4.0",
"elaina-flywheel>=0.6.0",
]
dynamic = ["version"]
requires-python = ">=3.9"
readme = "README-EN.md"
license = {text = "MIT"}
keywords = [
"command",
"argparse",
"fast",
"alconna",
"cli",
"command-line",
"parsing",
"optparse"
]
classifiers=[
"Typing :: Typed",
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.8",
"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",
"Operating System :: OS Independent",
]
[project.urls]
documentation = "https://arcletproject.github.io/docs/alconna/tutorial"
repository = "https://github.com/ArcletProject/Alconna"
[project.optional-dependencies]
full = ["arclet-alconna-tools>=0.2.0"]
[tool.pdm]
[tool.pdm.build]
includes = ["src/arclet"]
[tool.pdm.dev-dependencies]
dev = [
"pytest~=7.2.0",
"coverage~=7.0.1",
"pydeps~=1.11.0",
"fix-future-annotations>=0.4.0",
"isort>=5.13.2",
"black>=24.2.0",
"msgspec>=0.18.6",
]
[tool.pdm.scripts]
test = "pytest -v --ignore entry_test.py --durations=0 -s"
benchmark = "python benchmark.py"
deps = "pydeps -o alconna.svg ./src/arclet/alconna --max-bacon=4 --cluster --keep-target-cluster --rmprefix alconna. "
[tool.pdm.version]
source = "file"
path = "src/arclet/alconna/__init__.py"
[tool.pylint.BASIC]
class-const-naming-style = "any"
[tool.pylint."MESSAGE CONTROL"]
max-line-length = 120
disable = [
"broad-except",
"wrong-import-order",
"unused-import",
"invalid-name",
"use-a-generator",
"unbalanced-tuple-unpacking",
"inconsistent-return-statements",
"redefined-builtin",
"redefined-outer-name",
"import-outside-toplevel",
"too-many-arguments",
"too-many-instance-attributes",
"too-many-branches",
"too-many-boolean-expressions",
"too-many-locals",
"too-many-statements",
"too-many-return-statements",
"super-init-not-called",
"no-self-use"
]
[tool.coverage.run]
branch = true
source = ["."]
omit = ["test_alconna/entry_test.py"]
[tool.coverage.report]
# Regexes for lines to exclude from consideration
exclude_lines = [
# standard pragma
"pragma: no cover",
# Don't complain if non-runnable code isn't run:
"if 0:",
"if __name__ == .__main__.:",
"if (typing\\.)?TYPE_CHECKING( is True)?:",
"\\.\\.\\.",
"pass",
# Don't complain about abstract methods, they aren't run:
"@(abc\\.)?abstractmethod",
# Don't complain overload method / functions
"@(typing\\.)?overload",
"def __repr__",
"def __str__",
"def __eq__",
"except ImportError:",
]
[tool.black]
line-length = 120
target-version = ["py39", "py310", "py311", "py312", "py313"]
include = '\.pyi?$'
extend-exclude = '''
'''
[tool.isort]
profile = "black"
line_length = 120
skip_gitignore = true
extra_standard_library = ["typing_extensions"]
[tool.pyright]
pythonVersion = "3.9"
pythonPlatform = "All"
typeCheckingMode = "basic"
disableBytesTypePromotions = true
[tool.ruff]
line-length = 140