-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
62 lines (54 loc) · 1.38 KB
/
pyproject.toml
File metadata and controls
62 lines (54 loc) · 1.38 KB
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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "Network_devices_management_system"
version = "0.1.0"
description = "基于 Fastapi 构建的网络设备管理系统"
readme = "README.md"
requires-python = ">=3.13"
license = "MIT"
authors = [{ name = "lijianqiao", email = "lijianqiao2906@live.com" }]
dependencies = [
"aerich>=0.9.1",
"asyncpg>=0.30.0",
"fastapi-throttle>=0.1.6",
"fastapi[standard]>=0.115.12",
"itsdangerous>=2.2.0",
"loguru>=0.7.3",
"passlib[bcrypt]>=1.7.4",
"prometheus-client>=0.22.1",
"psutil>=7.0.0",
"pydantic-settings>=2.9.1",
"pyjwt>=2.10.1",
"redis[hiredis]>=6.2.0",
"tortoise-orm>=0.25.1",
"uvicorn[standard]>=0.34.3",
]
[tool.hatch.build.targets.wheel]
packages = ["app"]
[tool.ruff]
line-length = 120
target-version = "py313"
exclude = [".git", "__pycache__", ".venv", ".vscode"]
[tool.ruff.lint]
select = ["E", "W", "F", "I", "B", "C4", "UP"]
ignore = ["E501", "B008", "W191"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.ruff.lint.isort]
known-first-party = ["app"]
[dependency-groups]
dev = [
"httpx>=0.28.1",
"pytest>=8.4.0",
"pytest-asyncio>=1.0.0",
"ruff>=0.12.2",
]
[tool.aerich]
tortoise_orm = "app.db.connection.TORTOISE_ORM"
location = "./migrations"
src_folder = "."