-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
107 lines (95 loc) · 2.72 KB
/
pyproject.toml
File metadata and controls
107 lines (95 loc) · 2.72 KB
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
[project]
name = "paginate-fastapi"
version = "1.0.2"
description = "A simple and efficient pagination library for FastAPI applications"
authors = [
{name = "Ritvik Dayal", email = "ritvikr1605@gmail.com"}
]
readme = "README.md"
requires-python = ">=3.11"
license = "MIT"
keywords = ["fastapi", "sqlmodel", "pagination", "async", "filtering", "sorting"]
classifiers = [
"Development Status :: 4 - Beta",
"Framework :: FastAPI",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
dependencies = [
"fastapi>=0.100.0",
"sqlmodel>=0.0.8",
"pydantic>=2.0.0",
"pre-commit (>=4.1.0,<5.0.0)",
]
[tool.poetry]
name = "paginate-fastapi"
version = "0.1.0"
description = "A simple and efficient pagination library for FastAPI applications"
authors = ["Ritvik Dayal <ritvikr1605@gmail.com>"]
packages = [
{ include = "pagination" }
]
[project.optional-dependencies]
dev = [
"ruff>=0.9.7,<0.10.0",
"black>=24.1.0",
"mypy>=1.8.0",
"pytest>=8.0.0",
"pytest-asyncio>=0.23.0",
"pytest-cov>=4.1.0",
"httpx>=0.27.0",
"aiosqlite>=0.20.0",
"fastapi[all]>=0.100.0"
]
[project.urls]
Homepage = "https://github.com/ritvikdayal/paginate-fastapi"
Documentation = "https://github.com/ritvikdayal/paginate-fastapi#readme"
Repository = "https://github.com/ritvikdayal/paginate-fastapi.git"
Issues = "https://github.com/ritvikdayal/paginate-fastapi/issues"
[build-system]
requires = ["poetry-core>=2.0.0,<3.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
line-length = 100
target-version = "py311"
[tool.ruff.lint]
select = ["E", "F", "B", "I", "N", "UP", "PL", "RUF"]
ignore = ["PLR2004", "N999"]
[tool.black]
line-length = 100
target-version = ["py311"]
[tool.mypy]
python_version = "3.11"
ignore_missing_imports = true
explicit_package_bases = true
# Strict settings for main package
[[tool.mypy.overrides]]
module = "pagination.*"
strict = true
disallow_untyped_defs = true
check_untyped_defs = true
# Less strict settings for tests
[[tool.mypy.overrides]]
module = "tests.*"
disallow_untyped_defs = false
check_untyped_defs = false
disable_error_code = ["misc", "no-untyped-def", "no-untyped-call"]
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
python_files = "test_*.py"
[tool.poetry.group.dev.dependencies]
ruff = ">=0.9.7,<0.10.0"
black = ">=24.1.0"
mypy = ">=1.8.0"
pytest = ">=8.0.0"
pytest-asyncio = ">=0.23.0"
pytest-cov = ">=4.1.0"
httpx = ">=0.27.0"
aiosqlite = ">=0.20.0"
fastapi = {extras = ["all"], version = ">=0.100.0"}