-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
74 lines (61 loc) · 1.82 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
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "cookiepy"
version = "0.1.0"
description = ""
authors = ["David Smith <david@narigama.dev>"]
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.11"
fastapi = { version = "*" }
uvicorn = { version = "*" }
[tool.poetry.group.dev.dependencies]
pytest = { version = "*" }
pytest-async = { version = "*" }
pytest-random-order = { version = "*" }
pytest-asyncio = { version = "*" }
async-asgi-testclient = { version = "*" }
freezegun = { version = "*" }
# formatting, linting
ruff = { version = "*" }
ipython = { version = "*" }
httpx = { version = "*" }
[tool.pytest.ini_options]
asyncio_mode = "auto"
addopts = "--random-order"
[tool.ruff]
line-length = 120
target-version = "py311"
src = ["fastapi_httpproblem", "tests"]
[tool.ruff.per-file-ignores]
"tests/*" = ["S101", "T201"] # ignore tests use of assert
[tool.ruff.lint]
fixable = ["ALL"] # fix all rules that can be autofixed
select = [
"F", # pyflakes
"C901", # mccabe complexity
"I", # isort
"S", # flake8-bandit
"A", # flake8-builtins
"C4", # flake8-comprehensions
"DTZ", # flake8-datetimez
"T10", # flake8-debugger
"EM", # flake8-errmsg
"T20", # flake8-print
"RET504", # flake8-return: unnecessary-assign
"SIM", # flake8-simplify
"ERA", # eradicate
"PL", # pylint
]
[tool.ruff.flake8-builtins]
builtins-ignorelist = ["id"]
[tool.ruff.isort]
force-single-line = true
lines-after-imports = 2
known-first-party = ["fastapi_httpproblem"]
[tool.ruff.format]
line-ending = "lf" # force unix-style line endings
[tool.ruff.mccabe]
max-complexity = 10 # for rule C901: mccabe complexity