Skip to content

Add module docstrings to core API and configuration modules#1787

Merged
CodyCBakerPhD merged 3 commits intomasterfrom
enh-lad-docstrings-core
Feb 14, 2026
Merged

Add module docstrings to core API and configuration modules#1787
CodyCBakerPhD merged 3 commits intomasterfrom
enh-lad-docstrings-core

Conversation

@yarikoptic-gitmate
Copy link
Collaborator

Adds comprehensive module-level docstrings to core API and configuration modules, improving IDE support and code navigation.

Changes

  • dandiapi.py: Document REST API client, authentication, and main functionality
  • exceptions.py: Document custom exception hierarchy and error handling
  • consts.py: Document constants, metadata fields, and configuration

Benefits

  • Better IDE autocomplete and hover documentation
  • Improved code navigation and understanding
  • Follows NumPy docstring style conventions

Files Changed

  • dandi/dandiapi.py
  • dandi/exceptions.py
  • dandi/consts.py

Testing

Verified with full test suite: 548 passed, 0 failed.

See commit: 9ce222b3

Co-Authored-By: Claude Sonnet 4.5 noreply@anthropic.com

- dandiapi.py: Document REST API client classes and main functionality
- exceptions.py: Document custom exception hierarchy
- consts.py: Document constants, metadata fields, and configuration
@yarikoptic-gitmate yarikoptic-gitmate added the documentation Changes only affect the documentation label Feb 12, 2026
@codecov
Copy link

codecov bot commented Feb 12, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 75.12%. Comparing base (011120a) to head (47a1698).
⚠️ Report is 4 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1787   +/-   ##
=======================================
  Coverage   75.11%   75.12%           
=======================================
  Files          84       84           
  Lines       11922    11922           
=======================================
+ Hits         8955     8956    +1     
+ Misses       2967     2966    -1     
Flag Coverage Δ
unittests 75.12% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@CodyCBakerPhD
Copy link
Contributor

Very similar to #1789

@CodyCBakerPhD CodyCBakerPhD merged commit 0c60106 into master Feb 14, 2026
37 checks passed
@CodyCBakerPhD CodyCBakerPhD deleted the enh-lad-docstrings-core branch February 14, 2026 05:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Changes only affect the documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants