-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
106 lines (94 loc) · 2.64 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
[project]
name = "fastapi-motor-oil"
description = "Collection of async utilities for working with MongoDB and conveniently creating performant APIs with async web frameworks such a FastAPI."
readme = "README.md"
license = { text = "MIT" }
authors = [
{ name = "Peter Volf", email = "do.volfp@gmail.com" },
]
requires-python = ">=3.10"
dependencies = ["pydantic", "motor"]
classifiers = [
"Intended Audience :: Information Technology",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Development Status :: 4 - Beta",
"Topic :: Internet",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development",
"Typing :: Typed",
"Environment :: Web Environment",
"Framework :: FastAPI",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Topic :: Internet :: WWW/HTTP",
]
[project.urls]
Homepage = "https://github.com/volfpeter/fastapi-motor-oil"
Documentation = "https://volfpeter.github.io/fastapi-motor-oil"
[tool.poetry]
name = "fastapi-motor-oil"
version = "0.5.2"
description = "Collection of async utilities for working with MongoDB and conveniently creating performant APIs with async web frameworks such a FastAPI."
authors = ["Peter Volf <do.volfp@gmail.com>"]
readme = "README.md"
packages = [{include = "fastapi_motor_oil"}]
[tool.poetry.dependencies]
python = "^3.10"
motor = "^3.1.1"
pydantic = "^1.10.5"
[tool.poetry.group.dev.dependencies]
black = "^23.1.0"
mkdocs-material = "^9.1.0"
mkdocstrings = {extras = ["python"], version = "^0.20.0"}
mypy = "^1.0.1"
ruff = "^0.0.251"
poethepoet = "^0.20.0"
[tool.black]
line-length = 118
[tool.mypy]
strict = true
show_error_codes = true
[[tool.mypy.overrides]]
module = "motor.core.*"
ignore_missing_imports = true
[tool.ruff]
line-length = 118
exclude = [
".git",
".mypy_cache",
".pytest_cache",
".ruff_cache",
".venv",
"dist",
"docs",
]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"S", # flake8-bandit - we must ignore these rules in tests
"C", # flake8-comprehensions
"B", # flake8-bugbear
]
ignore = [
"E501", # line too long, handled by black
"B008", # do not perform function calls in argument defaults
]
[tool.ruff.isort]
known-third-party = [
"bson",
"motor",
"pydantic",
]
[tool.poe.tasks]
black = "black ."
black-check = "black . --check"
mypy = "mypy ."
ruff = "ruff check ."
static-checks.sequence = ["ruff", "black-check", "mypy"]
static-checks.ignore_fail = "return_non_zero"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"