generated from A-kirami/nonebot-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
84 lines (76 loc) · 1.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
[project]
name = "nonebot-plugin-pictranslator"
version = "1.0.2"
authors = [
{ name = "iona-s" },
]
description = "一个支持图片翻译的nonebot2插件"
license = { text = "MIT" }
readme = "README.md"
requires-python = ">=3.9, <4.0"
dependencies = [
"httpx>=0.27.0",
"langcodes>=3.5.0",
"nonebot-plugin-alconna>=0.54.0",
"nonebot2>=2.4.0",
"pillow>=10.0.0",
]
[project.urls]
homepage = "https://github.com/iona-s/nonebot-plugin-pictranslator"
repository = "https://github.com/iona-s/nonebot-plugin-pictranslator"
[dependency-groups]
dev = [
"black>=24.10.0",
"isort>=5.13.2",
"pre-commit>=4.0.1",
"ruff>=0.8.4",
]
[[tool.uv.index]]
url = "https://mirrors.aliyun.com/pypi/simple"
default = true
[tool.black]
line-length = 79
target-version = ["py39", "py310", "py311", "py312"]
include = '\.pyi?$'
skip-string-normalization = true
extend-exclude = '''
'''
[tool.isort]
profile = "black"
line_length = 79
length_sort = true
skip_gitignore = true
force_sort_within_sections = true
extra_standard_library = ["typing_extensions"]
[tool.ruff]
line-length = 79
target-version = "py39"
show-fixes = true
[tool.ruff.lint]
select = [
"F", # pyflakes
"E", "W", # pycodestyle
"N", # pep8-naming
# "D", # pydocstyle
"UP", # pyupgrade
"ASYNC", # flake8-async
"B", # flake8-bugbear
"A", # flake8-builtins
"C4", # flake8-comprehensions
"EM", # flake8-errmsg
"ISC", # flake8-implicit-str-concat
"PIE", # flake8-pie
"T20", # flake8-print
"PYI", # flask8-pyi
"Q", # flake8-quotes
"RSE", # flake8-raise
"RET", # flake8-return
"SLF", # flake8-self
"SIM", # flake8-simplify
"PTH", # flake8-use-pathlib
"COM", # flake8-commas
]
ignore = ["E402", "D100", "D415"]
[tool.ruff.lint.flake8-quotes]
inline-quotes = "single"
multiline-quotes = "single"