-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
153 lines (138 loc) · 3.6 KB
/
pyproject.toml
File metadata and controls
153 lines (138 loc) · 3.6 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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
[project]
name = "sqlalchemy-bind-manager"
dynamic = ["version"]
description = "A manager to easily handle multiple SQLAlchemy configurations"
authors = [{ name = "Federico Busetti", email = "729029+febus982@users.noreply.github.com" }]
requires-python = ">=3.9,<3.15"
readme = "README.md"
license = "MIT"
keywords = [
"sqlalchemy",
"config",
"manager",
]
classifiers = [
"Development Status :: 4 - Beta",
"Framework :: AsyncIO",
"Framework :: Pydantic",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"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 :: Database",
"Topic :: Database :: Front-Ends",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
dependencies = [
"pydantic>=2.1.1,<3",
"SQLAlchemy[asyncio, mypy]~=2.0.0",
]
[project.urls]
Homepage = "https://febus982.github.io/sqlalchemy-bind-manager"
Repository = "https://github.com/febus982/sqlalchemy-bind-manager"
[dependency-groups]
dev = [
"aiosqlite>=0.18.0",
"coverage>=6.5.0",
"mike>=2.0.0",
"mkdocs>=1.4.3",
"mkdocstrings[python]>=0.24.0",
"mkdocs-awesome-pages-plugin>=2.9.2,<3",
"mkdocs-gen-files>=0.5.0",
"mkdocs-material>=9.1.16",
"mypy>=0.990",
"poetry-plugin-export",
"pymdown-extensions>=10.0.1",
"pytest>=8.0.0,<9",
"pytest-asyncio>=0.20.3",
"pytest-cov>=4.0.0",
"pytest-factoryboy>=2.5.0",
"pytest-xdist>=3.0.2",
"ruff>=0.0.263",
"tox>=4.14.1,<5",
"tox-uv>=1.26.0",
"uv-dynamic-versioning>=0.8.2",
]
[tool.poetry-dynamic-versioning]
enable = true
[build-system]
requires = ["hatchling", "uv-dynamic-versioning"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.sdist]
include = ["sqlalchemy_bind_manager"]
[tool.hatch.build.targets.wheel]
include = ["sqlalchemy_bind_manager"]
[tool.hatch.version]
source = "uv-dynamic-versioning"
[tool.hatch.build.hooks.version]
path = "sqlalchemy_bind_manager/version.py"
[tool.coverage.run]
branch = true
source = ["sqlalchemy_bind_manager"]
[tool.coverage.report]
fail_under = 100
exclude_also = [
"pragma: no cover",
"pass",
"\\.\\.\\.",
]
omit = [
"sqlalchemy_bind_manager/version.py",
]
[tool.mypy]
files = "sqlalchemy_bind_manager"
python_version = "3.9"
plugins = "pydantic.mypy"
[tool.pytest.ini_options]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
minversion = "6.0"
addopts = "-n auto --cov-report=term-missing"
testpaths = [
"tests",
]
[tool.ruff]
extend-exclude = ["docs", ".tox"]
target-version = "py39"
[tool.ruff.lint]
select = [
"E", # pycodestyle
"W", # pycodestyle
"F", # pyflakes
"I", # isort
"N", # pep8-naming
"S", # flake8-bandit
"RUF", # ruff-specific-rules
]
# Ignoring rules problematic with formatter
# https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
ignore = [
"W191",
"E111",
"E114",
"E117",
"D206",
"D300",
"Q000",
"Q001",
"Q002",
"Q003",
"COM812",
"COM819",
"ISC001",
"ISC002",
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
"repository.py" = ["F401"]
"tests/**/*.py" = ["S101"] # Allow assert usage on tests