-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathpyproject.tbd
More file actions
61 lines (49 loc) · 1.44 KB
/
pyproject.tbd
File metadata and controls
61 lines (49 loc) · 1.44 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
[tool.poetry]
name = "fastapi-mongodb"
version = "0.6.0"
description = ""
authors = ["Jakub Miazek <the@grillazz.com>"]
readme = "README.md"
packages = [{ include = "fastapi_mongodb" }]
[tool.poetry.dependencies]
python = "^3.12"
fastapi = "^0.111.0"
pydantic = { version = "^2.7.0", extras = ["email"] }
pydantic-settings = "^2.2.1"
motor = "^3.4.0"
uvicorn = { version = "^0uv.29.0", extras = ["standard"] }
pytest = "^8.1.1"
pytest-cov = "^5.0.0"
httpx = "^0.27.0"
rich = "^13.7.1"
uvloop = "^0.19.0"
httptools = "^0.6.1"
ruff = "^0.4.4"
inline-snapshot = "^0.9.0"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
line-length = 120
indent-width = 4
lint.select = ["E", "F", "UP", "N", "C", "B"]
lint.ignore = ["E501"]
# Assume Python 3.12
target-version = "py312"
[tool.ruff.lint.flake8-quotes]
docstring-quotes = "double"
[tool.ruff.lint.flake8-bugbear]
extend-immutable-calls = ["fastapi.Depends",]
[tool.pytest.ini_options]
addopts = "-v --doctest-modules --doctest-glob=*.md --cov=. --cov-report html:htmlcov --cov-report=term-missing"
asyncio_mode = "strict"
env_files = [".env"]
[tool.ruff.format]
# Like Black, use double quotes for strings.
quote-style = "double"
# Like Black, indent with spaces, rather than tabs.
indent-style = "space"
# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false
# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"