forked from aminalaee/sqladmin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
112 lines (102 loc) · 2.73 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "sqladmin"
description = 'SQLAlchemy admin for FastAPI and Starlette'
readme = "README.md"
requires-python = ">=3.7"
license = "BSD-3-Clause"
keywords = ["sqlalchemy", "fastapi", "starlette", "admin"]
authors = [
{ name = "Amin Alaee", email = "[email protected]" },
]
classifiers = [
"Development Status :: 3 - Alpha",
"Programming Language :: Python",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Topic :: Internet :: WWW/HTTP",
"Operating System :: OS Independent",
]
dependencies = [
"starlette[full]",
"typing_extensions>=4.0;python_version < '3.8'",
"sqlalchemy >=1.4, <1.5",
"wtforms >=3, <4",
]
dynamic = ["version"]
[project.urls]
Documentation = "https://aminalaee.dev/sqladmin"
Issues = "https://github.com/aminalaee/sqladmin/issues"
Source = "https://github.com/aminalaee/sqladmin"
[tool.hatch.version]
path = "sqladmin/__init__.py"
[tool.hatch.build.targets.wheel]
[tool.hatch.build.targets.sdist]
include = [
"/sqladmin",
]
[tool.hatch.build]
exclude = [
"tests/*",
]
[tool.hatch.envs.default]
dependencies = [
"aiosqlite==0.17.0",
"asyncpg==0.27.0",
"autoflake==1.7.7",
"babel==2.10.3",
"black==22.10.0",
"build==0.9.0",
"coverage==6.5.0",
"email-validator==1.3.0",
"greenlet==2.0.0",
"httpx==0.23.0",
"isort==5.10.1",
"itsdangerous==2.1.2",
"mkdocs-material==8.5.7",
"mkdocs==1.4.1",
"mkdocstrings==0.18.1",
"mypy==0.982",
"psycopg2==2.9.5",
"pytest==7.2.0",
"sqlalchemy_utils==0.38.3",
"sqlmodel==0.0.8",
]
[tool.hatch.envs.default.scripts]
check = "isort --check --project=sqladmin . && black --check . && mypy sqladmin"
clean = "rm -r dist site"
cov = "coverage report --show-missing --skip-covered --fail-under=99 && coverage xml"
docs = "mkdocs serve"
docs_build = "mkdocs build"
docs_deploy = "mkdocs gh-deploy --force"
lint = "autoflake --in-place --recursive .s && isort --project=sqladmin . && black ."
test = "python -m coverage run --concurrency=thread,greenlet -m pytest"
[tool.mypy]
disallow_untyped_defs = true
ignore_missing_imports = true
show_error_codes = true
no_implicit_optional = true
[tool.isort]
profile = "black"
combine_as_imports = true
[tool.coverage.run]
source_pkgs = [
"sqladmin",
"tests",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"pragma: nocover",
"except NotImplementedError",
"raise NotImplementedError",
"if TYPE_CHECKING:",
]