Skip to content

docs(src): add docstrings to training utils env module#131

Merged
WilliamBerryiii merged 2 commits intomainfrom
docs/env-docstrings
Feb 7, 2026
Merged

docs(src): add docstrings to training utils env module#131
WilliamBerryiii merged 2 commits intomainfrom
docs/env-docstrings

Conversation

@WilliamBerryiii
Copy link
Member

@WilliamBerryiii WilliamBerryiii commented Feb 6, 2026

Description

Expand Google-style docstrings for both functions in src/training/utils/env.py with Args, Returns, and Raises sections. Documents the empty-string edge case in require_env and preservation semantics in set_env_defaults. Updates the Mapping import to collections.abc for Python 3.11+ alignment.

Closes #72

Type of Change

  • 🐛 Bug fix (non-breaking change fixing an issue)
  • ✨ New feature (non-breaking change adding functionality)
  • 💥 Breaking change (fix or feature causing existing functionality to change)
  • 📚 Documentation update
  • 🏗️ Infrastructure change (Terraform/IaC)
  • ♻️ Refactoring (no functional changes)

Component(s) Affected

  • deploy/000-prerequisites - Azure subscription setup
  • deploy/001-iac - Terraform infrastructure
  • deploy/002-setup - OSMO control plane / Helm
  • deploy/004-workflow - Training workflows
  • src/training - Python training scripts
  • docs/ - Documentation

Testing Performed

  • Terraform plan reviewed (no unexpected changes)
  • Terraform apply tested in dev environment
  • Training scripts tested locally with Isaac Sim
  • OSMO workflow submitted successfully
  • Smoke tests passed (smoke_test_azure.py)

Checklist

- expand require_env docstring with Args, Returns, Raises sections
- expand set_env_defaults docstring with Args and preservation semantics
- document empty-string edge case in require_env
- use collections.abc.Mapping for Python 3.11+ alignment
- align docstring spacing with metrics.py reference convention

📝 - Generated by Copilot
Copilot AI review requested due to automatic review settings February 6, 2026 06:07
@github-actions
Copy link

github-actions bot commented Feb 6, 2026

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR expands Google-style docstrings for the two public utility functions in src/training/utils/env.py to meet OpenSSF documentation requirements. The changes add comprehensive Args, Returns, and Raises sections while documenting important edge cases (empty-string handling in require_env and preservation semantics in set_env_defaults). Additionally, the Mapping import is modernized from typing to collections.abc for Python 3.11+ alignment.

Changes:

  • Expanded docstrings for require_env and set_env_defaults functions with full Google-style sections
  • Updated Mapping import from typing to collections.abc for Python 3.9+ compatibility

@WilliamBerryiii WilliamBerryiii added this to the v0.2.0 milestone Feb 6, 2026
@WilliamBerryiii WilliamBerryiii changed the title docs(src): expand Google-style docstrings for training utils env module docs(src): add docstrings to training utils env module Feb 6, 2026
@WilliamBerryiii WilliamBerryiii merged commit 29ab4f8 into main Feb 7, 2026
8 checks passed
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.

docs(src): add docstrings to training utils env module

3 participants