Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
109 lines (96 loc) · 2.9 KB
/
Copy pathpyproject.toml
File metadata and controls
109 lines (96 loc) · 2.9 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
[project]
name = "arclet-letoderea"
version = "0.22.1"
description = "A high-performance, simple-structured event system, relies on asyncio"
authors = [
{name = "RF-Tar-Railt", email = "rf_tar_railt@qq.com"},
]
dependencies = [
"tarina<0.8.0,>=0.7.0",
"typing-extensions>=4.12.0",
]
requires-python = ">=3.10,<4.0"
readme = "README.md"
license = {text = "MIT"}
keywords = ["asyncio", "event-system", "dispatch", "dependency-injection", "meta-programming", "meta-framework", "framework", "python-framework", "python-event-system", "python-dispatcher", "python-dependency-injection"]
classifiers = [
"Operating System :: OS Independent",
"License :: OSI Approved :: MIT License",
"Development Status :: 4 - Beta",
"Typing :: Typed",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.10",
"Framework :: AsyncIO",
]
[project.urls]
Repository = "https://github.com/ArcletProject/Letoderea"
Homepage = "https://github.com/ArcletProject/Letoderea"
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[tool.pdm]
distribution = true
[tool.pdm.build]
includes = ["arclet"]
[tool.pdm.dev-dependencies]
dev = [
"isort>=8.0.1",
"black>=26.5.1",
"pytest>=9.1.1",
"pytest-asyncio>=1.4.0",
"coverage>=7.6.12",
]
[tool.black]
line-length = 120
target-version = ["py310", "py311", "py312", "py313"]
include = '\.pyi?$'
extend-exclude = '''
'''
[tool.isort]
profile = "black"
line_length = 120
skip_gitignore = true
extra_standard_library = ["typing_extensions"]
[tool.ruff]
line-length = 120
target-version = "py310"
[tool.ruff.lint]
select = ["E", "W", "F", "UP", "C", "T", "Q"]
ignore = ["E402", "F403", "F405", "C901", "UP038", "T201", "T203"]
[tool.pyright]
pythonVersion = "3.10"
pythonPlatform = "All"
typeCheckingMode = "basic"
enableExperimentalFeatures = true
[tool.pytest.ini_options]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "session"
[tool.coverage.run]
branch = true
source = ["."]
omit = ["./examples/*.py", "./legacy/*.py", "exam*.py", "./arclet/letoderea/ref.py", "benchmark.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.pdm.scripts]
test = {composite = ["coverage run --rcfile=pyproject.toml -m pytest -vv -Wignore", "coverage xml", "coverage report -m"]}