1
1
[build-system ]
2
2
# hatchling v1.27 was first version to use default metadata version 2.4, allowing project.license
3
3
# and project.license-files fields following PEP-639
4
- requires = [" hatchling>=1.27" ]
4
+ requires = [" hatchling>=1.27" , " hatch-vcs " ]
5
5
build-backend = " hatchling.build"
6
6
7
7
[tool .hatch .build ]
@@ -13,10 +13,20 @@ exclude = [
13
13
" /tools" ,
14
14
]
15
15
16
+ [tool .hatch .version ]
17
+ source = " vcs"
18
+ fallback-version = " 1.2.0.post1.dev0"
19
+
20
+ [tool .hatch .version .raw-options ]
21
+ version_scheme = " no-guess-dev"
22
+
23
+ [tool .hatch .build .hooks .vcs ]
24
+ version-file = " pybaselines/_version.py"
25
+
16
26
17
27
[project ]
18
28
name = " pybaselines"
19
- version = " 1.2.0 "
29
+ dynamic = [ " version " ]
20
30
authors = [
21
31
{name = " Donald Erb" , email = " donnie.erb@gmail.com" },
22
32
]
@@ -107,7 +117,7 @@ src_paths = ["pybaselines", "tests"]
107
117
known_local_folder = [" example_helpers" ]
108
118
109
119
[tool .ruff ]
110
- exclude = [" docs/* " ]
120
+ exclude = [" docs/conf.py " ]
111
121
line-length = 100
112
122
fix = false
113
123
output-format = " full"
@@ -142,7 +152,7 @@ convention = "numpy"
142
152
" D205" , # D205: 1 blank line required between summary line and description
143
153
144
154
]
145
- "examples/*" = [
155
+ "docs/ examples/*" = [
146
156
" B007" , # B007: Loop control variable `name` not used within loop body; want to be explicit in examples
147
157
" D205" , # D205: 1 blank line required between summary line and description
148
158
" D400" , # D400: first line should end with a period
@@ -165,14 +175,14 @@ search = "version = \"{current_version}\""
165
175
replace = " version = \" {new_version}\" "
166
176
167
177
[[tool .bumpversion .files ]]
168
- filename = " pybaselines/__init__.py "
169
- search = " __version__ = ' {current_version}' "
170
- replace = " __version__ = ' {new_version}' "
178
+ filename = " pyproject.toml "
179
+ search = " fallback-version = \" {current_version}.post1.dev0 \" "
180
+ replace = " fallback-version = \" {new_version}.post1.dev0 \" "
171
181
172
182
[[tool .bumpversion .files ]]
173
- filename = " docs/conf .py"
174
- search = " version = '{current_version}'"
175
- replace = " version = '{new_version}'"
183
+ filename = " pybaselines/__init__ .py"
184
+ search = " __version__ = '{current_version}.post1.dev0 '"
185
+ replace = " __version__ = '{new_version}.post1.dev0 '"
176
186
177
187
[[tool .bumpversion .files ]]
178
188
filename = " CITATION.cff"
0 commit comments