This repository was archived by the owner on Feb 27, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
75 lines (67 loc) · 2.21 KB
/
pyproject.toml
File metadata and controls
75 lines (67 loc) · 2.21 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
63
64
65
66
67
68
69
70
71
72
73
74
75
[project]
name = "server"
version = "0.0.1.dev1"
description = ""
authors = [
{name = "Henrique Sebastião",email = "contato@henriquesebastiao.com"}
]
readme = "README.md"
requires-python = ">=3.14.2,<4.0"
dependencies = [
"fastapi[standard] (>=0.128.0,<0.129.0)",
"websockets (>=16.0,<17.0)",
"uvicorn (>=0.40.0,<0.41.0)",
"psutil (>=5.7.2,<7)",
"redis[async] (>=7.1.0,<8.0.0)",
"confy-addons (>=1.2.0,<2.0.0)",
"pydantic-settings (>=2.12.0,<3.0.0)",
]
[tool.poetry.group.dev.dependencies]
ruff = "^0.11.13"
taskipy = "^1.14.1"
radon = "^6.0.1"
bandit = "^1.9.3"
pytest = "^8.4.2"
pytest-cov = "^7.0.0"
mypy = "^1.19.1"
pytest-asyncio = "^1.3.0"
pydantic-core = "^2.41.5"
[build-system]
requires = ["poetry-core>=2.0.0,<3.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
line-length = 99
[tool.ruff.lint]
preview = true
select = ['I', 'F', 'E', 'W', 'PL', 'PT', 'D', 'UP', 'PERF']
extend-ignore = ["E501", "D203", "D212"]
[tool.ruff.format]
preview = true
quote-style = 'single'
[tool.ruff.lint.per-file-ignores]
"main.py" = ['PLR0912']
"__init__.py" = ['D104']
"tests/*.py" = ['D103', 'D100', 'PLR2004']
"server/schemas/*.py" = ['D101', 'D100']
"server/routers/status.py" = ['D100']
"settings.py" = ['D103', 'D101', 'D100']
"db.py" = ['D100']
"hasher.py" = ['D100']
"online_users.py" = ['D100']
"ws.py" = ['PLR0912']
"test_main.py" = ['PLW0108']
[tool.pytest.ini_options]
pythonpath = "."
addopts = '-p no:warnings'
asyncio_mode = 'auto'
[tool.taskipy.tasks]
run = 'poetry run uvicorn --reload --host 127.0.0.1 server.main:app'
lint = 'poetry run ruff check .; ruff check . --diff'
format = 'poetry run ruff format .; ruff check . --fix'
mypy = 'poetry run mypy -p server -p tests --ignore-missing-imports'
radon = 'poetry run radon cc ./server -a -na'
bandit = 'poetry run bandit -r ./server'
export = './scripts/rm-requirements.sh && poetry export -f requirements.txt --output requirements.txt --without-hashes --without dev'
pre_test = 'poetry run ruff check . -q; poetry run ruff check . --diff -q; poetry run mypy -p server -p tests --ignore-missing-imports; poetry run radon cc ./server -a -na; poetry run bandit -r ./server;'
test = 'poetry run pytest -s -x --cov=server -vv'
post_test = 'coverage html'