-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
117 lines (101 loc) · 2.75 KB
/
pyproject.toml
File metadata and controls
117 lines (101 loc) · 2.75 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
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "zodb-s3blobs"
dynamic = ["version"]
description = "Store ZODB blobs in S3-compatible object storage"
readme = "README.md"
license = "ZPL-2.1"
requires-python = ">=3.12"
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: Zope Public License",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Database",
]
dependencies = [
"ZODB>=5.8",
"boto3>=1.26",
"zope.interface",
"zc.lockfile",
"ZConfig",
"transaction",
]
[project.urls]
Homepage = "https://github.com/bluedynamics/zodb-s3blobs"
Repository = "https://github.com/bluedynamics/zodb-s3blobs"
Changelog = "https://github.com/bluedynamics/zodb-s3blobs/blob/main/CHANGES.md"
Issues = "https://github.com/bluedynamics/zodb-s3blobs/issues"
[project.optional-dependencies]
test = [
"pytest",
"pytest-cov",
"coverage[toml]>=7.0",
"moto[s3]>=4.0",
]
[tool.hatch.build.targets.sdist]
exclude = ["sources/", ".claude/"]
[tool.hatch.build.targets.wheel]
packages = ["src/zodb_s3blobs"]
[tool.hatch.version]
source = "vcs"
raw-options = { local_scheme = "no-local-version" }
[tool.hatch.build.hooks.vcs]
version-file = "src/zodb_s3blobs/_version.py"
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "--cov --cov-report="
[tool.coverage.run]
parallel = true
source = ["zodb_s3blobs"]
relative_files = true
[tool.coverage.report]
show_missing = true
fail_under = 90
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
]
[tool.ruff]
target-version = "py312"
[tool.ruff.lint]
select = [
"A", # flake8-builtins (shadowing builtins)
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
# PTH omitted: ZODB APIs use string paths throughout
"RUF", # ruff-specific
"SIM", # flake8-simplify
"T20", # flake8-print
"UP", # pyupgrade
"W", # pycodestyle warnings
]
ignore = [
"E501", # line too long
"RUF001", # Docstring contains ambiguous `’`
"RUF002", # Docstring contains ambiguous `’`
]
[tool.ruff.lint.isort]
# plone style
force-single-line = true
from-first = true
lines-after-imports = 2
lines-between-types = 1
no-sections = true
order-by-type = false
[tool.ruff.lint.pycodestyle]
max-line-length = 120 # E501 triggers above this, allows flexibility
max-doc-length = 120 # W505 triggers above this
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["T201"]
[tool.ty.rules]
unresolved-import = "ignore"
unsupported-base = "ignore"