-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
122 lines (102 loc) · 2.97 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
118
119
120
121
122
[project]
authors = [{ name = "Noam Stolero", email = "[email protected]" }]
description = "Starlette Admin plugin for LiteStar"
keywords = [
"sqlalchemy",
"advanced-alchemy",
"litestar",
"starlette",
"admin",
"dashboard",
"datatables",
]
license = "MIT"
name = "starlette-admin-litestar-plugin"
readme = "README.md"
requires-python = ">=3.10"
version = "0.3.1"
dependencies = [
"litestar>=2.14.0",
"pydantic>=2.10.6",
"starlette>=0.45.3",
"starlette-admin>=0.15rc5",
]
[project.urls]
Issues = "https://github.com/noamsto/starlette-admin-litestar-plugin/issues"
Repository = "https://github.com/noamsto/starlette-admin-litestar-plugin"
[dependency-groups]
dev = [
"deptry>=0.23.0",
"mypy>=1.14.1",
"ruff>=0.9.4",
"advanced-alchemy[nanoid]>=0.30.3",
"aiosqlite>=0.20.0",
"litestar[standard]>=2.14.0",
]
release = ["commitizen>=4.1.1", "cz-conventional-gitmoji>=0.6.1"]
[tool.deptry]
extend_exclude = ["examples"]
[tool.uv]
default-groups = ["dev"]
[[tool.uv.index]]
name = "pypi"
url = "https://pypi.org/simple"
[[tool.uv.index]]
name = "testpypi"
publish-url = "https://test.pypi.org/legacy/"
url = "https://test.pypi.org/simple/"
[tool.ruff]
exclude = [".git", "__pycache__", "build", "dist"]
line-length = 100
[tool.ruff.lint]
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?)|request)$"
ignore = [
"E501", # line too long (handled by line-length)
]
select = [
"ARG", # flake8-unused-arguments
"ASYNC", # flake8-async
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"E", # pycodestyle errors
"F", # Pyflakes
"G", # flake8-logging-format
"I", # isort
"Q", # flake8-quotes
"RUF", # Ruff-specific rules
"S", # flake8-bandit
"SIM", # flake8-simplify
"T20", # flake8-print
"UP", # pyupgrade
"W", # pycodestyle warnings
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"] # Ignore unused imports in __init__.py files
[tool.ruff.lint.isort]
combine-as-imports = true
known-first-party = ["starlette_admin_litestar_plugin"]
[tool.ruff.format]
docstring-code-format = true
docstring-code-line-length = 50
[tool.mypy]
check_untyped_defs = true
disallow_any_generics = true
follow_imports = "silent"
ignore_missing_imports = true
no_implicit_reexport = true
warn_redundant_casts = true
warn_unused_ignores = true
[tool.commitizen]
major_version_zero = true #NOTE: This is a temporary setting until we reach v1.0.0
name = "cz_gitmoji"
pre_bump_hooks = ["uv lock --upgrade-package starlette-admin-litestar-plugin"]
tag_format = "v$version"
update_changelog_on_bump = true
version_provider = "pep621"
version_scheme = "semver2"
[build-system]
build-backend = "hatchling.build"
requires = ["hatchling"]
[tool.hatch.build.targets.wheel]
[tool.hatch.build.targets.sdist]
include = ["starlette_admin_litestar_plugin"]