Skip to content

dcnm_maintenance_mode: 02 docstrings#575

Open
allenrobel wants to merge 11 commits intodevelopfrom
dcnm-maintenance-mode-docstrings
Open

dcnm_maintenance_mode: 02 docstrings#575
allenrobel wants to merge 11 commits intodevelopfrom
dcnm-maintenance-mode-docstrings

Conversation

@allenrobel
Copy link
Copy Markdown
Collaborator

@allenrobel allenrobel commented Dec 3, 2025

Summary

There are no functional changes in this PR.

Update docstrings for all files that are directly related to the dcnm_maintainence_mode module to conform with standards defined in CLAUDE.md.

Notes to reviewers

TBD

Files changed

  • plugins/module_utils/common/maintenance_mode.py
  • plugins/module_utils/common/maintenance_mode_info.py
  • plugins/modules/dcnm_maintenance_mode.py

No functional changes in this commit.

Run black and isort.
No functional changes in this commit.

Run black and isort linters against MaintenanceMode.
No functional changes in this commit.

Run black and isort linters against dcnm_maintenance_mode.py.
No functional changes in this commit.

Run black and isort linters against unit test files for dcnm_maintenance_mode.
No functional changes in this commit.

This commit updates all docstrings to conform to the standards defined in CLAUDE.md (not in this repository).  These standards include:

1. Structured headings

# Summary

## Raises

### ValueError

## Other heading

…etc

2. Single backticks around class, method, var, names, exception names, etc.
Copy link
Copy Markdown
Contributor

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 pull request updates docstrings across the dcnm_maintenance_mode module and related test files to conform with standards defined in CLAUDE.md. The changes include:

  • Reformatting docstring headers from ### to # for top-level summaries and using ## and ### for subsections
  • Consolidating multi-line import statements to single lines for better readability
  • Converting inline code references to use backticks consistently
  • Restructuring docstring sections with consistent headings (Summary, Raises, Details, Usage, etc.)
  • Updating JSON examples in docstrings to use proper quoting

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 11 comments.

Show a summary per file
File Description
tests/unit/modules/dcnm/dcnm_maintenance_mode/utils.py Consolidated multi-line imports into single lines
tests/unit/modules/dcnm/dcnm_maintenance_mode/test_dcnm_maintenance_mode_want.py Consolidated multi-line imports into single lines
tests/unit/modules/dcnm/dcnm_maintenance_mode/test_dcnm_maintenance_mode_query.py Consolidated imports and reformatted import lists
tests/unit/modules/dcnm/dcnm_maintenance_mode/test_dcnm_maintenance_mode_params_spec.py Consolidated multi-line imports into single lines
tests/unit/modules/dcnm/dcnm_maintenance_mode/test_dcnm_maintenance_mode_merged.py Consolidated imports and reformatted import lists, simplified string concatenation
tests/unit/modules/dcnm/dcnm_maintenance_mode/test_dcnm_maintenance_mode_common.py Consolidated multi-line imports into single lines
tests/unit/module_utils/common/test_maintenance_mode_info.py Reformatted test docstrings to use new standard format with # and ## headings
tests/unit/module_utils/common/test_maintenance_mode.py Reformatted test docstrings and consolidated imports; simplified function signatures
plugins/modules/dcnm_maintenance_mode.py Comprehensive docstring reformatting for all classes and methods; added blank line after imports; standardized JSON examples
plugins/module_utils/common/maintenance_mode_info.py Comprehensive docstring reformatting; reordered imports to follow standard (local before relative)
plugins/module_utils/common/maintenance_mode.py Comprehensive docstring reformatting; consolidated multi-line imports

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Fix below error:

ERROR: tests/unit/module_utils/common/test_maintenance_mode.py:1238:161: E501: line too long (181 > 160 characters)
@allenrobel allenrobel changed the title dcnm_maintenance_mode: docstrings dcnm_maintenance_mode: 02 docstrings Dec 3, 2025
No functional changes in this commit.

1. Update all docstrings to conform to Markdown format.
2. Add module dostrings where missing.
3.  Add pylint supression directive for __metaclass__ invalid-name
No functional changes in this commit.

Update copyright dates for all unit test files associuated with dcnm_maintenance_mode.
@allenrobel allenrobel added ready for review PR is ready to be reviewed and removed Work in Progress Code not ready for review. labels Dec 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready for review PR is ready to be reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants