-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
118 lines (103 loc) · 2.41 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
[project]
name = "cobalt-forward"
version = "0.1.0"
description = "A high-performance TCP-WebSocket forwarder with command dispatching capabilities"
requires-python = ">=3.10,<4.0"
authors = [{ name = "Max Qian", email = "astro_air@126.com" }]
dependencies = [
"fastapi>=0.104.0",
"uvicorn>=0.24.0",
"websockets>=12.0",
"typer>=0.9.0",
"pyyaml>=6.0.1",
"python-dotenv>=1.0.0",
"loguru>=0.7.2",
"psutil>=5.9.6",
"aiocache>=0.12.2",
"pydantic>=2.4.2",
"typing-extensions>=4.8.0",
"asyncio>=3.4.3",
"aiohttp>=3.9.1",
]
[project.optional-dependencies]
dev = [
"pytest>=7.4.3",
"pytest-asyncio>=0.21.1",
"pytest-cov>=4.1.0",
"black>=23.11.0",
"isort>=5.12.0",
"mypy>=1.7.1",
"ruff>=0.1.6",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.metadata]
allow-direct-references = true
[tool.black]
line-length = 88
target-version = ["py310"]
include = '\.pyi?$'
[tool.isort]
profile = "black"
multi_line_output = 3
line_length = 88
[tool.mypy]
python_version = "3.10"
strict = true
ignore_missing_imports = true
check_untyped_defs = true
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
[tool.pytest.ini_options]
minversion = "7.0"
addopts = "-ra -q --cov=cobalt_forward"
testpaths = ["tests"]
asyncio_mode = "auto"
[tool.coverage.run]
source = ["cobalt_forward"]
omit = ["tests/*"]
[tool.ruff]
line-length = 88
target-version = "py310"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
]
ignore = [
"E501", # line too long, handled by black
"B008", # do not perform function calls in argument defaults
]
[project.scripts]
cobalt-forward = "cobalt_forward.main:cli"
[tool.hatch.build.targets.wheel]
packages = ["cobalt_forward"]
[tool.poetry]
name = "cobalt-forward"
version = "0.1.0"
description = "Enhanced TCP-WebSocket forwarding service"
authors = ["Your Name <your.email@example.com>"]
[tool.poetry.dependencies]
python = "^3.9"
fastapi = "^0.68.0"
uvicorn = "^0.15.0"
websockets = "^10.0"
aiocache = "^0.11.1"
python-dotenv = "^0.19.0"
pyyaml = "^5.4.1"
typer = "^0.4.0"
psutil = "^5.8.0"
loguru = "^0.5.3"
watchdog = "^2.1.6"
[tool.poetry.dev-dependencies]
pytest = "^6.2.5"
pytest-asyncio = "^0.15.1"
black = "^21.7b0"
isort = "^5.9.3"