-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
146 lines (131 loc) · 3.31 KB
/
pyproject.toml
File metadata and controls
146 lines (131 loc) · 3.31 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
[project]
name = "pgmob"
version = "0.3.1"
description = "Postgres Managed Objects - a Postgres database management interface"
authors = [
{name = "Kirill Kravtsov", email = "nvarscar@gmail.com"}
]
readme = "README.md"
license = {text = "MIT"}
requires-python = ">=3.13"
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.13",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
keywords = ["postgres", "postgresql", "sql", "backup", "restore", "database", "management"]
dependencies = [
"packaging>=26.0",
]
[project.optional-dependencies]
psycopg2 = ["psycopg2>=2.9.11,<3"]
psycopg2-binary = ["psycopg2-binary>=2.9.11,<3"]
dev = [
"pytest>=9.0.0",
"pytest-cov>=7.0.0",
"pytest-mock>=3.15.0",
"pytest-asyncio>=1.3.0",
"docker>=7.1.0",
"ruff>=0.15.0",
"ty>=0.0.15",
"pyyaml>=6.0.3",
"hypothesis>=6.0.0",
]
[project.urls]
Homepage = "https://github.com/dataplat/pgmob/"
Repository = "https://github.com/dataplat/pgmob"
Documentation = "https://pgmob.readthedocs.io/en/latest/"
"Bug Tracker" = "https://github.com/dataplat/pgmob/issues"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/pgmob"]
[tool.hatch.build.targets.sdist]
include = [
"/src",
"/README.md",
"/LICENSE",
]
[tool.ruff]
line-length = 110
target-version = "py313"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"ARG", # flake8-unused-arguments
"SIM", # flake8-simplify
]
ignore = [
"E501", # line too long (handled by formatter)
"B008", # do not perform function calls in argument defaults
"B904", # raise from
"ARG002", # unused method argument
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"] # unused imports
"src/tests/**" = ["ARG001", "ARG002", "F403", "F405", "E711", "E712"] # test patterns
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "lf"
[tool.pytest.ini_options]
testpaths = ["src/tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = [
"-ra",
"--strict-markers",
"--strict-config",
"--showlocals",
]
markers = [
"unit: Unit tests",
"integration: Integration tests",
"slow: Slow tests",
"asyncio: Async tests",
]
[tool.coverage.run]
source = ["src/pgmob"]
omit = [
"*/tests/*",
"*/conftest.py",
"*/__pycache__/*",
]
branch = true
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"def __str__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"class .*\\bProtocol\\):",
"@(abc\\.)?abstractmethod",
]
precision = 2
show_missing = true
[tool.coverage.html]
directory = "htmlcov"
# Define named indexes for publishing with uv
[[tool.uv.index]]
name = "pypi"
url = "https://pypi.org/simple"
publish-url = "https://upload.pypi.org/legacy/"
explicit = true
[[tool.uv.index]]
name = "test-pypi"
url = "https://test.pypi.org/simple"
publish-url = "https://test.pypi.org/legacy/"
explicit = true