-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
139 lines (128 loc) · 3.25 KB
/
pyproject.toml
File metadata and controls
139 lines (128 loc) · 3.25 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
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
[project]
name = "fastapi-fullauth"
dynamic = ["version"]
description = "Production-grade, async-native authentication and authorization library for FastAPI"
readme = "README.md"
requires-python = ">=3.10"
license = "MIT"
keywords = [
"fastapi",
"authentication",
"authorization",
"security",
"jwt",
"argon2",
"oauth2",
"rbac",
"async",
"pydantic",
"sqlmodel",
"sqlalchemy",
"redis",
"bcrypt",
"csrf",
"refresh-token",
"password-hashing",
"role-based-access-control",
"passkey",
"webauthn",
]
classifiers = [
"Development Status :: 4 - Beta",
"Framework :: FastAPI",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Security",
"Typing :: Typed",
]
dependencies = [
"fastapi>=0.136.1",
"pydantic[email]>=2.13.4",
"pydantic-settings>=2.14.1",
"pyjwt>=2.12.1",
"argon2-cffi>=25.1.0",
"uuid-utils>=0.16.0",
]
[project.optional-dependencies]
sqlalchemy = ["sqlalchemy[asyncio]>=2.0.49", "alembic>=1.18.4"]
sqlmodel = ["sqlmodel>=0.0.38", "alembic>=1.18.4"]
redis = ["redis>=7.4.0"]
oauth = ["httpx>=0.28.1"]
passkey = ["webauthn>=2.7.1"]
all = [
"sqlalchemy[asyncio]>=2.0.49",
"alembic>=1.18.4",
"sqlmodel>=0.0.38",
"redis>=7.4.0",
"httpx>=0.28.1",
"webauthn>=2.7.1",
]
[project.urls]
Homepage = "https://github.com/mdfarhankc/fastapi-fullauth"
Documentation = "https://mdfarhankc.github.io/fastapi-fullauth"
Repository = "https://github.com/mdfarhankc/fastapi-fullauth"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[dependency-groups]
dev = [
"aiosqlite>=0.22.1",
"fakeredis>=2.35.1",
"httpx>=0.28.1",
"mkdocs-material>=9.7.6",
"mypy>=2.1.0",
"pytest>=9.0.3",
"pytest-asyncio>=1.3.0",
"pytest-cov>=7.1.0",
"ruff>=0.15.13",
"uvicorn>=0.47.0",
]
[tool.hatch.version]
path = "fastapi_fullauth/__init__.py"
[tool.hatch.build.targets.wheel]
packages = ["fastapi_fullauth"]
[tool.mypy]
python_version = "3.10"
strict = true
warn_return_any = true
warn_unused_configs = true
# Adapter modules use SQLAlchemy 2.0 / SQLModel column-comparison patterns
# that the upstream stubs don't fully express in strict mode (the column
# descriptor's __eq__ types as bool instead of ColumnElement[bool], etc.).
# Disable the affected error codes only here so the rest of the codebase
# stays strict.
[[tool.mypy.overrides]]
module = [
"fastapi_fullauth.adapters.sqlmodel",
"fastapi_fullauth.adapters.sqlalchemy",
]
disable_error_code = [
"arg-type",
"attr-defined",
"assignment",
"call-arg",
"call-overload",
"misc",
"no-any-return",
"no-untyped-call",
"no-untyped-def",
"union-attr",
"unused-ignore",
]
[tool.pytest]
asyncio_mode = "auto"
testpaths = ["tests"]
filterwarnings = [
"ignore:In-memory backends in use:UserWarning",
]
[tool.ruff]
line-length = 100
[tool.ruff.lint]
select = ["E", "F", "I", "N", "UP", "B", "SIM"]
ignore = ["B008", "B904"]