-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
77 lines (62 loc) · 2.09 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
[build-system]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core"]
[tool.poetry]
description = "Useful utilities for ASGI based applications."
name = "narigama-asgi"
readme = "README.md"
version = "0.1.0"
authors = ["David Smith <[email protected]>"]
packages = [{ include = "narigama_asgi" }]
[tool.poetry.dependencies]
python = "^3.11"
argon2-cffi = { version = "*" }
asyncpg = { version = "*" }
fastapi = { version = "*" }
passlib = { version = "*" }
pypika = { version = "*" }
loguru = { version = "*" }
[tool.poetry.group.dev.dependencies]
black = { version = "*" }
ipython = { version = "*" }
ruff = { version = "*" }
uvicorn = { version = "*" }
invoke = { version = "*" }
async-asgi-testclient = { version = "^1.4.11" }
httpx = { version = "^0.24.1" }
freezegun = { version = "^1.2.2" }
pytest = { version = "^7.4.0" }
pytest-random-order = { version = "^1.1.0" }
pytest-asyncio = { version = "^0.21.1" }
pytest-watcher = { version = "^0.3.4" }
pytest-env = { version = "^0.8.2" }
pytest-cov = { version = "^4.1.0" }
[tool.pytest.ini_options]
asyncio_mode = "auto"
addopts = "--random-order"
[tool.black]
line-length = 120
target-version = ["py310"]
[tool.ruff]
exclude = ["tests", "tasks.py"]
ignore = [
"D", # TODO: remove, ignore all documentation errors for now
"D100", # missing docstring on public module
"D105", # missing docstring on magic methods
"D401", # first line of docstring should be in imperative mood
"UP032", # require f-strings over .format
"B008", # ignore inline calls, blocks fastapi.Depends
]
line-length = 120
select = ["E", "F", "W", "C90", "I", "D", "UP", "S", "B", "A", "COM", "T20", "Q", "SIM", "PTH"]
src = ["narigama_asgi"]
[tool.ruff.per-file-ignores]
"narigama_asgi/__init__.py" = ["F401"]
[tool.ruff.isort]
force-single-line = true
lines-after-imports = 2
known-first-party = ["narigama_asgi"]
[tool.ruff.mccabe]
max-complexity = 10
[tool.ruff.flake8-builtins]
builtins-ignorelist = ["id"]