Skip to content

Commit

Permalink
Add a few docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
maresb committed Dec 27, 2024
1 parent b86ef86 commit 7370db0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/src/hatchling/metadata/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ def context(self) -> Context:

@cached_property
def core_raw_metadata(self) -> dict[str, Any]:
"""Metadata from `pyproject.toml` or similar, possibly with dynamic fields overwritten by `PKG-INFO`."""
if 'project' not in self.config:
message = 'Missing `project` metadata table in configuration'
raise ValueError(message)
Expand Down Expand Up @@ -139,6 +140,7 @@ def version(self) -> str:

@property
def config(self) -> dict[str, Any]:
"""The config dict, directly from `pyproject.toml` or similar."""
if self._config is None:
project_file = locate_file(self.root, 'pyproject.toml')
if project_file is None:
Expand Down

0 comments on commit 7370db0

Please sign in to comment.