Skip to content

docs(naming): add missing docstrings to filename utility functions#771

Open
RavSinghChandan wants to merge 1 commit into
huggingface:mainfrom
RavSinghChandan:docs/add-missing-docstrings-naming
Open

docs(naming): add missing docstrings to filename utility functions#771
RavSinghChandan wants to merge 1 commit into
huggingface:mainfrom
RavSinghChandan:docs/add-missing-docstrings-naming

Conversation

@RavSinghChandan

Copy link
Copy Markdown

Summary

Five public functions in src/evaluate/naming.py had no docstrings at all, making their expected inputs, outputs, and error conditions invisible to IDE tooling and to contributors reading the source.

This PR adds complete docstrings following the existing HuggingFace style used throughout the codebase (Google-style with backtick-formatted types):

Function What was added
filename_prefix_for_name Args, Returns, Raises, Example
filename_prefix_for_split Args, Returns, Raises, Example
filepattern_for_dataset_split Args, Returns, Example
filename_for_dataset_split Args, Returns, Example
filepath_for_dataset_split Args, Returns, cross-reference to helper, Example

No logic changes

Documentation only — no behaviour was modified.

CI checks

  • black --check
  • isort --check-only
  • flake8

Add Args/Returns/Raises/Example docstrings to filename_prefix_for_name,
filename_prefix_for_split, filepattern_for_dataset_split,
filename_for_dataset_split, filepath_for_dataset_split
@RavSinghChandan RavSinghChandan force-pushed the docs/add-missing-docstrings-naming branch from 5a586fd to 9eeb5e8 Compare July 1, 2026 02:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant