-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
109 lines (97 loc) · 2.61 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
[project]
name = "pylibob"
description = "另一个 LibOneBot Python 库,旨在帮助开发者实现 OneBot 12 标准。"
authors = [{ name = "MingxuanGame", email = "[email protected]" }]
dependencies = [
"starlette>=0.27.0",
"uvicorn[standard]>=0.23.2,<1",
"msgspec>=0.18.2",
'typing_extensions>=4.8.0,<5 ; python_version<="3.8"',
"aiohttp[speedups]>=3.8.0,<4",
"msgpack>=1.0.7,<2",
]
requires-python = ">=3.8"
readme = "README.md"
dynamic = ["version"]
keywords = ["onebot", "libonebot", "onebot12"]
license = { text = "MIT" }
[project.urls]
Homepage = "https://pylibob.mxgame.top"
Documentation = "https://pylibob.mxgame.top"
Repository = "https://github.com/Herta-villa/pylibob"
"Bug Tracker" = "https://github.com/Herta-villa/pylibob/issues"
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[tool.pdm]
version = { source = "file", path = "src/pylibob/version.py" }
[tool.pdm.dev-dependencies]
dev = ["ruff>=0.0.291", "black>=23.9.1"]
docs = [
"mkdocs>=1.5.3",
"mkdocs-material[imaging]>=9.4.3",
"pymdown-extensions>=10.3",
"mkdocs-literate-nav>=0.6.1",
"mkdocstrings[python]>=0.23.0",
"mkdocs-gen-files>=0.5.0",
"mkdocs-section-index>=0.3.8",
]
[tool.ruff]
line-length = 79
select = [
"E",
"W", # pycodestyle
"F", # pyflakes
"I", # isort
"RUF", # ruff
"TRY", # tryceratops
# "D", # pydocstyle
# pylint
"PLW", # Warning
"PLR", # Refactor
"PLE", # Error
"PTH", # flake8-use-pathlib
"SLF", # flake8-self
"RET", # flake8-return
"RSE", # flake8-raise
"T20", # flake8-print
"PIE", # flake8-pie
"ISC", # flake8-implicit-str-concat
"C4", # flake8-comprehensions
"COM", # flake8-commas
"A", # flake8-builtins
"B", # flake8-bugbear
"ASYNC", # flake8-async
]
ignore = ["PLR0913", "TRY003"]
allowed-confusables = [",", "。", "(", ")", ";"]
[tool.ruff.isort]
force-sort-within-sections = true
extra-standard-library = ["typing_extensions"]
force-wrap-aliases = true
combine-as-imports = true
order-by-type = true
relative-imports-order = "closest-to-furthest"
required-imports = ["from __future__ import annotations"]
section-order = [
"future",
"standard-library",
"first-party",
"local-folder",
"third-party",
]
[tool.pdm.scripts]
lint = "ruff check ."
fix = "ruff check --fix ."
[tool.pyright]
reportShadowedImports = false
pythonVersion = "3.8"
pythonPlatform = "All"
executionEnvironments = [{ root = "./src/" }]
[tool.black]
extend-exclude = '''
'''
include = '\.pyi?$'
line-length = 79
skip-string-normalization = true
target-version = ["py38", "py39", "py310", "py311"]