-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
142 lines (128 loc) · 2.89 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
[tool.poetry]
name = "qingque"
version = "0.1.0"
description = "A simple Discord interaction bot for Honkai: Star Rail"
authors = ["noaione <[email protected]>"]
license = "MIT"
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.10"
msgspec = {extras = ["toml"], version = "0.18.5"}
"discord.py" = "2.3.2"
coloredlogs = "15.0.1"
orjson = "3.9.10"
redis = {extras = ["hiredis"], version = "5.0.1"}
aiopath = "0.6.11"
aiohttp = "3.9.1"
pillow = "10.1.0"
babel = "2.14.0"
[tool.poetry.group.dev.dependencies]
ruff = "0.1.7"
isort = "5.13.1"
black = "23.12.0"
typing-extensions = "4.9.0"
colorthief = "0.2.1"
[tool.poetry.scripts]
srscard = "qingque.cli.generator:main"
srsbot = "qingque.cli.bot:main"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
ignore = [
"E203",
"F405",
"F403",
"F722",
"N806",
"COM812",
"D400", # first line should be period, most of my docstring will be LICENSE header so no thanks
"D202",
"D401",
"N818", # error
]
line-length = 120
extend-exclude = [
"env",
"venv",
".pytest_cache",
".venv",
"__pycache__",
".git",
".mypy_cache",
".vscode",
".ruff_cache",
"**/Lib/**",
"dist",
"build"
]
ignore-init-module-imports = true
target-version = "py310"
select = [
"E",
"F",
"W",
"I",
"N",
"S",
"B",
"T",
"Q",
# "D",
"RUF",
"COM",
"CPY",
"PTH",
"ASYNC",
]
src = ["qingque", "tests", "pipelines", "cogs"]
[tool.ruff.pydocstyle]
convention = "numpy"
ignore-decorators = ["typing.overload"]
[tool.ruff.isort]
combine-as-imports = false
split-on-trailing-comma = true
required-imports = ["from __future__ import annotations"]
known-first-party = ["tests", "qingque", "cogs"]
section-order = ["future", "standard-library", "third-party", "first-party", "local-folder"]
[tool.ruff.flake8-bugbear]
extend-immutable-calls = ["fastapi.Depends", "fastapi.Query"]
[tool.ruff.per-file-ignores]
"__init__.py" = ["F401", "F403", "I002", "D205"]
"tests/*.py" = ["S101", "I002", "D"] # assert statement used in pytest
"pipelines/*" = ["T", "I", "S603", "D"]
"_metadata.py" = ["I002"]
"migrations/*" = ["T201"]
[tool.black]
line-length = 120
target-version = ["py310"]
include = '\.pyi?$'
exclude = '''
/(
\.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| venv
| env
| _build
| build
| dist
)/
'''
[tool.isort]
profile = "black"
multi_line_output = 3
extend_skip = ["env/**", "venv/**", ".pytest_cache/**", ".venv/**", "__pycache__/**"]
line_length = 110
skip_gitignore = false
combine_as_imports = false
[tool.pyright]
include = ["qingque", "pipelines", "cogs", "bot.py"]
exclude = ["venv", "env", "node_modules", ".venv", ".env", ".nox", ".pytest_cache", ".mypy_cache", ".tox", "build", "dist", "_build", "**/__pycache__"]
ignore = ["_testing"]
stubPath = "./stubs"
reportMissingImports = true
venv = "."
pythonVersion = "3.10"