-
Notifications
You must be signed in to change notification settings - Fork 31
/
pyproject.toml
92 lines (79 loc) · 1.76 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
[project]
name = "fast-soy-admin"
version = "0.1.0"
description = "Default template for PDM package"
authors = [
{ name = "sleep1223", email = "sleep1223@outlook.com" },
]
dependencies = [
"fastapi>=0.111.0",
"uvicorn>=0.29.0",
"tortoise-orm[aiosqlite]>=0.20.1",
"pydantic>=2.7.1",
"pydantic-settings>=2.2.1",
"passlib>=1.7.4",
"pyjwt>=2.8.0",
"loguru>=0.7.2",
"aerich>=0.7.2",
"email-validator>=2.1.1",
"setuptools>=69.5.1",
"argon2-cffi>=23.1.0",
]
requires-python = ">=3.10"
readme = "README.md"
license = { text = "MIT" }
[tool.ruff]
line-length = 120
[tool.ruff.lint]
exclude = [ "web", "node_modules", "migrations", "src/experimental", "src/typestubs", "src/oldstuff" ]
extend-select = [
"F",
"E",
"W",
"UP",
# "I", # isort
# "B", # flake8-bugbear
# "C4", # flake8-comprehensions
# "PGH", # pygrep-hooks
# "RUF", # ruff
# "W", # pycodestyle
# "YTT", # flake8-2020
]
ignore = [
"F403",
"F405",
"E501", # Line too long
# "I001", # isort
]
[tool.ruff.format]
#quote-style = "single"
#indent-style = "tab"
#docstring-code-format = true
[tool.pyright]
include = ["app"]
exclude = ["web",
"**/node_modules",
"**/__pycache__",
"src/experimental",
"src/typestubs",
]
ignore = [
"migrations", "src/oldstuff",
]
defineConstant = { DEBUG = false }
stubPath = "src/stubs"
reportMissingImports = true
reportMissingTypeStubs = false
reportIncompatibleVariableOverride = false
[tool.pdm]
distribution = false
[tool.pdm.build]
includes = []
[[tool.pdm.source]]
name = "tsinghua"
url = "https://pypi.tuna.tsinghua.edu.cn/simple/"
verify_ssl = true
[tool.aerich]
tortoise_orm = "app.settings.TORTOISE_ORM"
location = "./migrations"
src_folder = "./."