-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpyproject.toml
136 lines (123 loc) · 2.74 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
[tool.poetry]
name = "fastapi-filters"
version = "0.2.10"
description = "fastapi-filters"
authors = ["Yurii Karabas <[email protected]>"]
readme = "README.md"
license = "MIT"
repository = "https://github.com/uriyyo/fastapi-filters"
packages = [{ include = "fastapi_filters" }]
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 :: Only',
]
[tool.poetry.dependencies]
python = "^3.8"
pydantic = "^2.0.0"
fastapi = ">=0.100.0"
typing-extensions = "^4.4.0"
sqlalchemy = { version = "^2.0.0", optional = true }
tortoise-orm = { version = ">=0.20,<0.24", optional = true }
[tool.poetry.group.dev.dependencies]
pytest = ">=7.2,<9.0"
pytest-cov = ">=4,<6"
pytest-asyncio = ">=0.20.3,<0.25.0"
httpx = ">=0.23.3,<0.29.0"
asgi-lifespan = "^2.0.0"
ruff = ">=0.5.1,<0.8.6"
mypy = ">=0.991,<1.15"
black = ">=22.12,<25.0"
pre-commit = ">=2.21,<4.0"
uvicorn = ">=0.20,<0.34"
dirty-equals = ">=0.6,<0.9"
faker = ">=19.3,<34.0"
asyncpg = ">=0.28,<0.31"
[tool.poetry.extras]
sqlalchemy = ["sqlalchemy"]
tortoise-orm = ["tortoise-orm"]
all = ["sqlalchemy", "tortoise-orm"]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
addopts = """
"""
[tool.black]
line-length = 120
target-version = ['py38']
include = '\.pyi?$'
exclude = '''
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
# The following are specific to Black, you probably don't want those.
| blib2to3
| tests/data
| profiling
)/
'''
[tool.ruff]
line-length = 120
target-version = "py38"
[tool.lint.ruff]
select = ["E", "F"]
ignore = []
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 = {"tests/mypy/*" = ["E501"]}
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.lint.ruff.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_filters"]
[tool.coverage.run]
source = ["fastapi_filters"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"@abstractmethod",
"@overload",
"if TYPE_CHECKING:",
]