Skip to content

Commit 86b2c33

Browse files
nickhacHermes Agent
andcommitted
fix(code_quality): Missing docstring on public function initialize in hatch_b
Gap ID: #431 Co-authored-by: Hermes Agent <hermes-agent@nousresearch.com>
1 parent 0e6fac2 commit 86b2c33

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

hatch_build.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,16 @@ class CustomBuildHook(BuildHookInterface):
1111
"""Regenerate deterministic JQL artifacts before building a distribution."""
1212

1313
def initialize(self, version: str, build_data: dict[str, object]) -> None:
14+
"""Regenerate JQL artifacts when building from a repository checkout.
15+
16+
Skips generation when building from an sdist, which has neither a .git
17+
directory nor the private build-time inputs required by generate_jql.py.
18+
19+
Args:
20+
version: The version string supplied by Hatch for the current build.
21+
build_data: Mutable mapping that Hatch uses to collect extra build
22+
metadata (e.g. additional artifacts and forced inclusion paths).
23+
"""
1424
# Generated files are checked in. Regenerate only in a repository checkout;
1525
# an sdist installation has neither .git nor the private build-time inputs.
1626
if not (Path(self.root) / ".git").exists():

0 commit comments

Comments
 (0)