forked from amisadmin/fastapi-user-auth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
117 lines (108 loc) · 2.84 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
[build-system]
requires = ["flit_core >=3.2,<4"]
build-backend = "flit_core.buildapi"
[project]
name = "fastapi_user_auth"
authors = [
{ name = "Atomi", email = "[email protected]" },
]
maintainers = [
{ name = "Atomi", email = "[email protected]" },
]
description = "FastAPI-User-Auth is a simple and powerful FastAPI user RBAC authentication and authorization library. Based on FastAPI-Amis-Admin and provides a freely extensible visual management interface."
readme = "README.md"
requires-python = ">=3.8"
dynamic = ["version"]
keywords = [
"fastapi",
"fastapi-user-auth",
"fastapi-amis-admin",
"fastapi-auth",
"fastapi-users",
"fastapi-jwt-auth",
"sqlmodel",
]
classifiers = [
"Framework :: FastAPI",
"Environment :: Web Environment",
"Topic :: System :: Systems Administration",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
dependencies = [
"fastapi-amis-admin>=0.7.1,<0.8.0",
"email-validator>=1.3.1,<3.0.0",
"passlib>=1.7.4",
"bcrypt>=4.0.0,<4.1.0",
"casbin>=1.34.0",
]
[project.urls]
Documentation = "http://docs.amis.work/"
Source = "https://github.com/amisadmin/fastapi_user_auth"
FastAPI-Amis-Admin = "https://github.com/amisadmin/fastapi_amis_admin"
[project.optional-dependencies]
jwt = [
"python-jose>=3.3.0",
]
redis = ["redis>=4.2.0"]
test = [
"uvicorn[standard] >=0.19.0,<1.0",
"pytest >=6.2.4",
"pytest-asyncio>=0.17,<0.23.0",
"aiosqlite>=0.15.0",
"python-jose>=3.3.0",
"jinja2 >=2.11.2,<4.0.0",
"ujson>=5.5.0",
"requests>=2.28.1",
"pre-commit>=2.20.0",
"httpx>=0.23.3",
"pydantic-settings>=2.0.0",
"sqlmodelx>=0.0.11",
]
# pytest
[tool.pytest.ini_options]
minversion = "6.0"
testpaths = [
"tests",
]
# pytest-asyncio
asyncio_mode = "auto"
#filterwarnings = [
# "ignore::RuntimeWarning",
#]
[tool.isort]
profile = "black"
atomic = true
filter_files = true
[tool.black]
line-length = 130
include = '\.pyi?$'
[tool.ruff]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"C", # flake8-comprehensions
"B", # flake8-bugbear
]
ignore = [
"E501", # line too long
"B008", # do not perform function calls in argument defaults
"C901", # too complex
"E711", # comparison to None should be 'if cond is None:';sqlalchemy is not support.
"E712", # comparison to True should be 'if cond is True:' or 'if cond:'
]
# Same as Black.
line-length = 130
[tool.ruff.per-file-ignores]
"__init__.py" = ["F401"]
[tool.pdm.scripts]
lint = "pre-commit run --all-files"
test = "pytest"
[tool.pdm.dev-dependencies]