This repository has been archived by the owner on Feb 20, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpyproject.toml
80 lines (70 loc) · 1.99 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
[tool.poetry]
name = "nonebot-adapter-villa"
version = "1.4.2"
description = "NoneBot2 米游社大别野 Bot 适配器。MiHoYo Villa Bot adapter for nonebot2."
authors = ["CMHopeSunshine <[email protected]>"]
license = "MIT"
readme = "README.md"
homepage = "https://github.com/CMHopeSunshine/nonebot-adapter-villa"
repository = "https://github.com/CMHopeSunshine/nonebot-adapter-villa"
documentation = "https://github.com/CMHopeSunshine/nonebot-adapter-villa"
keywords = ["nonebot", "mihoyo", "bot"]
packages = [{ include = "nonebot" }]
[tool.poetry.dependencies]
python = "^3.8"
nonebot2 = "^2.1.2"
rsa = "^4.9"
protobuf = "^4.25.1"
[tool.poetry.group.dev.dependencies]
ruff = "^0.1.4"
pre-commit = "^3.1.0"
nonebot2 = { version = "^2.0.0", extras = ["fastapi", "httpx"] }
[tool.ruff]
select = [
"E",
"W", # pycodestyle
"F", # pyflakes
"UP", # pyupgrade
"N", # pep8-naming
"I", # isort
"PYI", # flask8-pyi
"Q", # flake8-quotes
"PTH", # flake8-use-pathlib
"RET", # flake8-return
"RSE", # flake8-raise
"T20", # flake8-print
"PIE", # flake8-pie
"SIM", # flake8-simplify
"ISC", # flake8-implicit-str-concat
"C4", # flake8-comprehensions
"COM", # flake8-commas
"B", # flake8-bugbear
"ASYNC", # flake8-async
]
ignore = ["E402", "B008", "F403", "F405", "RET505"]
line-length = 88
target-version = "py38"
ignore-init-module-imports = true
[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"
section-order = [
"future",
"standard-library",
"first-party",
"third-party",
"local-folder",
]
[tool.pyright]
pythonVersion = "3.8"
pythonPlatform = "All"
typeCheckingMode = "basic"
reportShadowedImports = false
disableBytesTypePromotions = true
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"