forked from arthurio/fastapi-filter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
140 lines (123 loc) · 3.11 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
[tool.black]
line-length = 120
[tool.isort]
profile = "black"
line_length=120
skip_gitignore = true
[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]
select = [
"A",
"B",
"C",
"D",
"E",
"F"
]
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"]
unfixable = []
# Exclude a variety of commonly ignored directories.
exclude = [
".git",
".mypy_cache",
".nox",
".ruff_cache",
]
line-length = 120
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
# Assume Python 3.12.
target-version = "py312"
[tool.ruff.pydocstyle]
convention = "google"
[tool.poetry]
name = "fastapi-filter"
version = "1.1.0"
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.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]
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}
pydantic = ">=2.0.0,<3.0.0"
python = ">=3.8,<4.0"
[tool.poetry.dev-dependencies]
Faker = "^22.0.0"
SQLAlchemy-Utils = "^0.41.0"
aiosqlite = "^0.19.0"
bandit = "^1.7.5"
black = "^23.1.0"
flynt = "^1.0.0"
greenlet = "^3.0.0"
httpx = "^0.26.0"
ipython = "^8.11.0"
isort = "^5.12.0"
mkdocs-material = "^9.1.2"
mypy = "^1.1"
mypy-extensions = "^1.0.0"
pre-commit = "^3.1.1"
pudb = "^2022.1.3"
pytest = "^7.2.2"
pytest-asyncio = "^0.23.0"
pytest-cov = "^4.0.0"
pytest-pudb = "^0.7.0"
python-lsp-server = "^1.7.4"
requests = "^2.28.2"
tomli = "^2.0.1"
types-click = "^7.1.8"
types-setuptools = "^68.1.0.0"
typing-extensions = "^4.5.0"
uvicorn = "^0.25.0"
pydantic = {extras = ["email"], version="^2.0.0"}
[tool.poetry.extras]
mongoengine = ["mongoengine"]
sqlalchemy = ["SQLAlchemy"]
all = ["mongoengine", "SQLAlchemy"]
[tool.poetry.group.dev.dependencies]
nox = "^2023.0.0"
ruff = "^0.1.0"
urllib3 = "<=2.1.0"
[build-system]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core>=1.0.0"]