-
-
Notifications
You must be signed in to change notification settings - Fork 32
/
pyproject.toml
159 lines (143 loc) · 3.52 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
[tool.flynt]
line-length = 120
[tool.mypy]
mypy_path = [
"fastapi_filter",
]
show_error_codes = true
check_untyped_defs = true
plugins = [
"sqlalchemy.ext.mypy.plugin",
]
[[tool.mypy.overrides]]
module = [
"bson.objectid",
"mongoengine.*",
"uvicorn.*",
]
ignore_missing_imports = true
[tool.ruff]
line-length = 120
# Assume Python 3.9 to be compatible with typing.
target-version = "py39"
# Exclude a variety of commonly ignored directories.
exclude = [
".git",
".mypy_cache",
".nox",
".ruff_cache",
]
[tool.ruff.lint]
select = [
"A",
"B",
"C",
"D",
"E",
"F",
"I",
"SIM",
"UP",
]
ignore = [
"A003", # Argument name should be lowercase.
"B008", # Do not perform function calls in argument defaults.
"D1", # Missing docstring https://www.pydocstyle.org/en/2.1.1/error_codes.html.
"D203", # 1 blank line required before class docstring.
"D213", # Multi-line docstring summary should start at the second line.
]
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = [
"A",
"B",
"C",
"D",
"E",
"F",
"I",
"SIM",
"UP",
]
unfixable = []
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.lint.isort]
known-first-party = [
"fastapi_filter",
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[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"
[tool.poetry]
name = "fastapi-filter"
version = "2.0.1"
description = "FastAPI filter"
authors = ["Arthur Rio <[email protected]>"]
license = "MIT"
readme = "README.md"
repository = "https://github.com/arthurio/fastapi-filter"
classifiers = [
"Natural Language :: English",
"Framework :: FastAPI",
"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]
SQLAlchemy = {version = ">=1.4.36,<2.1.0", optional = true}
fastapi = ">=0.100.0,<1.0"
mongoengine = {version = ">=0.24.1,<0.28.0", optional = true}
beanie = {version = ">=1.26.0,<1.30.0", optional = true}
pydantic = ">=2.0.0,<3.0.0"
python = ">=3.9,<4.0"
[tool.poetry.dev-dependencies]
Faker = "^26.0.0"
SQLAlchemy-Utils = "^0.41.2"
aiosqlite = "^0.20.0"
bandit = "^1.7.9"
flynt = "^1.0.1"
greenlet = "^3.0.3"
httpx = "^0.27.0"
ipython = "^8.11.0"
mkdocs-material = "^9.5.21"
mypy = "^1.10.1"
mypy-extensions = "^1.0.0"
pre-commit = "^3.7.1"
pudb = "^2024.1"
pytest = "^8.2.2"
pytest-asyncio = "^0.23.7"
pytest-cov = "^5.0.0"
pytest-pudb = "^0.7.0"
python-lsp-server = "^1.11.0"
requests = "^2.32.3"
tomli = "^2.0.1"
types-click = "^7.1.8"
types-setuptools = "^70.1.0.20240627"
typing-extensions = "^4.12.2"
uvicorn = "^0.30.1"
pydantic = {extras = ["email"], version="^2.7.4"}
[tool.poetry.extras]
mongoengine = ["mongoengine"]
beanie = ["beanie"]
sqlalchemy = ["SQLAlchemy"]
all = ["mongoengine", "beanie", "SQLAlchemy"]
[tool.poetry.group.dev.dependencies]
nox = "^2024.4.15"
ruff = "^0.5.0"
urllib3 = "<=2.2.2"
[build-system]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core>=1.0.0"]