-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathpyproject.toml
More file actions
198 lines (183 loc) · 5.15 KB
/
pyproject.toml
File metadata and controls
198 lines (183 loc) · 5.15 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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
[build-system]
requires = ["setuptools>=45", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "py-ipld-dag"
version = "0.2.1"
description = "MerkleDAG implementation in Python"
readme = "README.md"
authors = [
{name = "Dhruv Baldawa", email = "dhruv@dhruvb.com"},
]
license = {text = "MIT license"}
keywords = ["dag"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"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",
]
requires-python = ">=3.10, <4.0"
dependencies = [
"cbor2>=5.4.0",
"py-cid>=0.4.0",
"py-multihash>=3.0.0",
"base58>=2.0.0",
"py-multibase>=2.0.0",
"py-multicodec>=1.0.0",
]
[project.urls]
Homepage = "https://github.com/ipld/py-ipld-dag"
[dependency-groups]
dev = [
{ include-group = "docs" },
{ include-group = "test" },
{ include-group = "release" },
"mypy",
"pre-commit>=3.4.0",
"pyrefly",
"ruff>=0.11.10",
"towncrier>=24,<25",
"tox>=4.10.0",
"watchdog>=3.0.0",
]
docs = [
"Sphinx>=5.0.0",
"myst-parser>=2.0.0",
]
test = [
"pytest",
"pytest-runner",
]
release = [
"build>=0.9.0",
"bump-my-version>=1.2.0",
"twine",
"wheel>=0.31.0",
]
[tool.setuptools]
include-package-data = true
[tool.setuptools.packages.find]
where = ["."]
include = ["dag*", "dag.codecs*"]
[tool.pytest.ini_options]
addopts = "-v --showlocals --durations 50 --maxfail 10"
testpaths = ["tests"]
python_classes = "*TestCase"
log_cli = "False"
log_date_format = "%m-%d %H:%M:%S"
log_format = "%(levelname)8s %(asctime)s %(filename)20s %(message)s"
markers = [
"slow: mark test as slow",
]
[tool.ruff]
line-length = 88
exclude = [".tox", "build", "docs", "__init__.py"]
[tool.ruff.lint]
select = [
"F", # Pyflakes
"E", # pycodestyle errors
"W", # pycodestyle warnings
"I", # isort
"D", # pydocstyle
]
ignore = [
"D100", # Missing docstring in public module
"D101", # Missing docstring in public class
"D102", # Missing docstring in public method
"D103", # Missing docstring in public function
"D105", # Missing docstring in magic method
"D106", # Missing docstring in public nested class
"D107", # Missing docstring in __init__
"D200", # One-line docstring should fit on one line
"D203", # 1 blank line required before class docstring
"D204", # 1 blank line required after class docstring
"D205", # 1 blank line required between summary line and description
"D212", # Multi-line docstring summary should start at the first line
"D400", # First line should end with a period
"D401", # First line should be in imperative mood
"D412", # No blank lines allowed between a section header and its content
"D415", # First line should end with a period, question mark, or exclamation
]
[tool.ruff.lint.isort]
known-first-party = ["dag", "tests"]
[tool.bumpversion]
current_version = "0.2.1"
commit = true
tag = true
[[tool.bumpversion.files]]
filename = "pyproject.toml"
search = 'version = "{current_version}"'
replace = 'version = "{new_version}"'
[[tool.bumpversion.files]]
filename = "dag/__init__.py"
search = '__version__ = "{current_version}"'
replace = '__version__ = "{new_version}"'
[tool.towncrier]
# Read https://github.com/ipld/py-ipld-dag/blob/master/newsfragments/README.md for instructions
directory = "newsfragments"
filename = "docs/release_notes.rst"
issue_format = "`#{issue} <https://github.com/ipld/py-ipld-dag/issues/{issue}>`__"
package = "dag"
title_format = "py-ipld-dag v{version} ({project_date})"
underlines = ["-", "~", "^"]
[[tool.towncrier.type]]
directory = "breaking"
name = "Breaking Changes"
showcontent = true
[[tool.towncrier.type]]
directory = "bugfix"
name = "Bugfixes"
showcontent = true
[[tool.towncrier.type]]
directory = "deprecation"
name = "Deprecations"
showcontent = true
[[tool.towncrier.type]]
directory = "docs"
name = "Improved Documentation"
showcontent = true
[[tool.towncrier.type]]
directory = "feature"
name = "Features"
showcontent = true
[[tool.towncrier.type]]
directory = "internal"
name = "Internal Changes - for py-ipld-dag Contributors"
showcontent = true
[[tool.towncrier.type]]
directory = "misc"
name = "Miscellaneous Changes"
showcontent = false
[[tool.towncrier.type]]
directory = "performance"
name = "Performance Improvements"
showcontent = true
[[tool.towncrier.type]]
directory = "removal"
name = "Removals"
showcontent = true
[tool.mypy]
python_version = "3.10"
check_untyped_defs = false
disallow_any_generics = false
disallow_incomplete_defs = false
disallow_subclassing_any = false
disallow_untyped_calls = false
disallow_untyped_decorators = false
disallow_untyped_defs = false
ignore_missing_imports = true
incremental = false
strict_equality = false
strict_optional = false
warn_redundant_casts = false
warn_return_any = false
warn_unused_configs = true
warn_unused_ignores = false