generated from othneildrew/Best-README-Template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
99 lines (84 loc) · 1.93 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
[project]
name = "sanic-api"
version = "0.2.9"
description = "Sanic 框架实用API工具集,拥有自动生成文档、参数校验、配置的导入、日志功能的优化等功能,更好的助力接口的开发"
authors = [
{ name = "昊色居士", email = "xhrtxh@gmail.com" },
]
dependencies = [
"sanic[ext]>=23.6.0",
"loguru>=0.6.0",
"pygments>=2.13.0",
"ujson>=5.7.0",
"orjson>=3.8.6",
"setuptools>=68.0.0",
"hs-config>=0.1.0",
]
requires-python = ">=3.8,<3.12"
readme = "README.MD"
license = { text = "MIT" }
[build-system]
requires = ["pdm-pep517>=1.0.0"]
build-backend = "pdm.pep517.api"
[tool.isort]
profile = "black"
[tool.mypy]
python_version = "3.8"
ignore_missing_imports = true
[tool.black]
line-length = 120
[tool.ruff]
# Enable Pyflakes `E` and `F` codes by default.
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"C", # flake8-comprehensions
"B", # flake8-bugbear
]
ignore = [
"E501", # line too long, handled by black
"B008", # do not perform function calls in argument defaults
"C901", # too complex
]
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".hg",
".mypy_cache",
".nox",
".pants.d",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
]
# Same as Black.
line-length = 120
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.per-file-ignores]
"__init__.py" = ["F401"]
[tool.pdm]
[tool.pdm.dev-dependencies]
dev = [
"pre-commit>=3.0.4",
"types-ujson>=5.7.0.0",
"types-PyYAML>=6.0.12.2"
]
[[tool.pdm.source]]
name = "pypi"
url = "https://pypi.tuna.tsinghua.edu.cn/simple"
verify_ssl = true
[tool.pdm.scripts]
check = "pdm run pre-commit run --all-files"