-
Notifications
You must be signed in to change notification settings - Fork 295
Expand file tree
/
Copy pathpyproject.toml
More file actions
126 lines (111 loc) · 2.86 KB
/
Copy pathpyproject.toml
File metadata and controls
126 lines (111 loc) · 2.86 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
[build-system]
requires = ["uv_build>=0.9.17,<0.13.0"]
build-backend = "uv_build"
[tool.uv.build-backend]
module-name = "sqladmin"
module-root = ""
[project]
name = "sqladmin"
version = "0.31.0"
description = 'SQLAlchemy admin for FastAPI and Starlette'
readme = "README.md"
requires-python = ">=3.10"
license = "BSD-3-Clause"
keywords = ["sqlalchemy", "fastapi", "starlette", "admin"]
authors = [{ name = "Amin Alaee", email = "mohammadamin.alaee@gmail.com" }]
maintainers = [
{ name = "Miradil Zeynalli", email = "miradil.zeynalli@gmail.com" },
]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"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",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Topic :: Internet :: WWW/HTTP",
"Operating System :: OS Independent",
]
dependencies = [
"starlette>=0.50,<2.0.0",
"wtforms >=3.1, <3.3",
"jinja2",
"python-multipart",
"sqlalchemy >= 2.0",
]
[project.optional-dependencies]
auth = ["itsdangerous"]
i18n = ["babel"]
full = ["itsdangerous", "babel"]
[project.urls]
Documentation = "https://smithyhq.github.io/sqladmin/"
Issues = "https://github.com/smithyhq/sqladmin/issues"
Source = "https://github.com/smithyhq/sqladmin"
[dependency-groups]
dev = [
"aiosqlite",
"arrow",
"asyncpg",
"babel",
"build",
"colour",
"coverage",
"email-validator",
"fastapi-storages",
"greenlet",
"httpx",
"itsdangerous",
"phonenumbers",
"pillow",
"psycopg2-binary",
"psycopg[binary]",
"pytest",
"python-dateutil",
"sqlalchemy_utils",
"sqlmodel",
"bandit",
]
lint = ["mypy==2.3.0", "ruff==0.15.20", "types-wtforms>=3.2.1.20250809"]
docs = ["zensical~=0.0.42", "mkdocstrings[python]~=1.0.3"]
[tool.mypy]
disallow_untyped_defs = true
ignore_missing_imports = true
show_error_codes = true
check_untyped_defs = true
strict_optional = true
no_implicit_optional = true
disable_error_code = ["var-annotated"]
[[tool.mypy.overrides]]
module = "tests.*"
ignore_errors = true
[tool.ruff]
lint.select = [
"E", # Pycodestyle
"F", # Pyflakes
"I", # isort
"UP", # pyupgrade (modern typing / syntax fixes)
]
[tool.coverage.run]
source_pkgs = ["sqladmin", "tests"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"pragma: nocover",
"except NotImplementedError",
"raise NotImplementedError",
"if TYPE_CHECKING:",
]
fail_under = 95
show_missing = true
skip_covered = true
[tool.babel]
# Message extraction mapping for `pybabel extract -F pyproject.toml`.
# Only Jinja templates are scanned; SQLAdmin marks UI strings with _("...").
[[tool.babel.mappings]]
method = "jinja2"
pattern = "sqladmin/templates/**.html"
extensions = "jinja2.ext.i18n"