-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
130 lines (119 loc) · 2.97 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
119
120
121
122
123
124
125
126
127
128
129
130
[tool.poetry]
name = "fastapi-async-safe-dependencies"
version = "0.1.2"
description = "FastAPI async safe dependencies"
authors = [
"Yurii Karabas <1998uriyyo@gmail.com>",
]
packages = [
{include = "fastapi_async_safe"},
]
license = "MIT"
readme = "README.md"
repository = "https://github.com/uriyyo/fastapi-async-safe-dependencies"
classifiers = [
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3 :: Only',
]
[tool.poetry.dependencies]
python = "^3.9"
fastapi = ">=0.109,<0.116"
typing-extensions = "^4.9.0"
[tool.poetry.group.dev.dependencies]
pytest = ">=7.4.4,<9.0.0"
pytest-asyncio = ">=0.23.3,<0.26.0"
pytest-cov = ">=4.1,<7.0"
ruff = ">=0.5.0,<0.10.0"
mypy = "^1.8.0"
pre-commit = ">=3.6,<5.0"
httpx = ">=0.26,<0.29"
asgi-lifespan = "^2.1.0"
click = "^8.1.7"
uvicorn = {version = ">=0.27,<0.35", extras = ["standard"]}
matplotlib = "^3.8.2"
fastapi-lifespan-manager = "^0.1.3"
sqlalchemy = "^2.0.25"
asyncpg = ">=0.29,<0.31"
dependency-injector = { version = "^4.41.0", python = "<3.12" } # python 3.12 still not supported by dependency-injector
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
line-length = 120
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"C", # flake8-comprehensions
"B", # flake8-bugbear
"S", # flake8-bandit
"G", # flake8-logging-format
"PIE", # flake8-pie
"COM", # flake8-commas
"PT", # flake8-pytest-style
"Q", # flake8-quotes
"RSE", # flake8-raise
"RET", # flake8-return
"SIM", # flake8-simplify
"TRY", # tryceratops
"RUF", # ruff specific rules
]
ignore = [
"B008", # do not perform function calls in argument defaults
"S101", # use of assert detected
"PT013", # allow from pytest import thing
"COM812", # formater will handle commas
]
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".hg",
".mypy_cache",
".nox",
".pants.d",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
".venv",
]
per-file-ignores = { }
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
target-version = "py39"
[tool.ruff.mccabe]
max-complexity = 10
[tool.mypy]
python_version = 3.9
strict = true
follow_imports = "normal"
ignore_missing_imports = true
no_implicit_reexport = false
show_column_numbers = true
show_error_codes = true
[tool.coverage.paths]
source = ["fastapi_async_safe"]
[tool.coverage.run]
source = ["fastapi_async_safe"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"@abstractmethod",
"@overload",
"if TYPE_CHECKING:",
]