-
Notifications
You must be signed in to change notification settings - Fork 136
/
pyproject.toml
172 lines (159 loc) Β· 4.54 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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
[tool.poetry]
name = "fastapi-pagination"
version = "0.12.32"
description = "FastAPI pagination"
authors = [
"Yurii Karabas <[email protected]>",
]
license = "MIT"
readme = "README.md"
repository = "https://github.com/uriyyo/fastapi-pagination"
classifiers = [
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.8',
'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.8,<4.0"
pydantic = ">=1.9.1"
typing-extensions = "^4.8.0"
SQLAlchemy = { version = ">=1.3.20", optional = true }
databases = { version = ">=0.6.0", optional = true }
orm = { version = ">=0.3.1", optional = true }
tortoise-orm = { version = ">=0.16.18,<0.22.0,!=0.21.0", optional = true }
asyncpg = { version = ">=0.24.0", optional = true }
ormar = { version = ">=0.11.2", optional = true}
django = { version = "<5.0.0", optional = true}
piccolo = { version = ">=0.89,<0.122", optional = true}
motor = { version = ">=2.5.1,<4.0.0", optional = true }
mongoengine = {version = ">=0.23.1,<0.30.0", optional = true}
sqlmodel = { version = ">=0.0.8,<0.0.15", optional = true}
pony = { version = "^0.7.16", optional = true}
beanie = { version = ">=1.25.0", optional = true}
sqlakeyset = { version = "^2.0.1680321678", optional = true }
scylla-driver = {version = "^3.25.6", optional = true}
bunnet = {version = "^1.1.0", optional = true}
[tool.poetry.dev-dependencies]
fastapi = ">=0.93.0"
pytest = "^8.3.2"
pytest-cov = "^5.0.0"
pytest-asyncio = "^0.24.0"
flaky = "^3.8.1"
pre-commit = "^3.5.0"
Faker = "^33.0.0"
psycopg2-binary = "^2.9.10"
mkdocs = "^1.6.1"
mkdocs-material = "^9.5.44"
pymdown-extensions = "^10.12"
fontawesome-markdown = "^0.2.6"
httpx = "^0.27.2"
asgi-lifespan = "^2.1.0"
requests = "^2.32.2"
uvicorn = "^0.32.0"
Jinja2 = "^3.1.4"
mypy = "^1.13.0"
ruff = "^0.7.4"
[tool.poetry.extras]
sqlmodel = ["sqlmodel", "sqlakeyset"]
sqlalchemy = ["SQLAlchemy", "sqlakeyset"]
databases = ["databases"]
orm = ["orm", "databases", "typesystem"]
ormar = ["ormar"]
tortoise = ["tortoise-orm"]
asyncpg = ["SQLAlchemy", "asyncpg"]
django = ["django", "databases"]
piccolo = ["piccolo"]
motor = ["motor"]
bunnet = ["bunnet"]
mongoengine = ["mongoengine"]
beanie = ["beanie"]
scylla-driver = ["scylla-driver"]
all = ["sqlmodel", "SQLAlchemy", "databases", "orm", "ormar", "tortoise-orm", "asyncpg", "django", "piccolo", "motor", "mongoengine", "pony", "beanie", "sqlakeyset", "scylla-driver", "bunnet"]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
line-length = 120
target-version = "py38"
[tool.ruff.lint]
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
"PT004", # fixture doesn't return anything
"PT013", # allow from pytest import thing
"SIM114", # allow have multiplie ifs with same body
"TRY003", # allow long exc message
"RUF100", # allow unused noqa
"RUF012", # allow mutable class var
"COM812", # will be handled by ruff format
]
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]+?))$"
[tool.ruff.lint.mccabe]
max-complexity = 10
[tool.mypy]
python_version = 3.8
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_pagination"]
[tool.coverage.run]
source = ["fastapi_pagination"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"@abstractmethod",
"@overload",
"if TYPE_CHECKING:",
]