-
Notifications
You must be signed in to change notification settings - Fork 50
dcnm_maintenance_mode: 01 linting #574
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
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.
There was a problem hiding this 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 applies black and isort linting to the dcnm_maintenance_mode module and its related files. The changes are purely cosmetic, reformatting imports and line lengths to comply with Python formatting standards.
Key Changes
- Reformatted multi-line imports to single lines where appropriate
- Reordered imports alphabetically following isort conventions
- Added blank lines between import groups per PEP 8
- Collapsed long statements to single lines following black style
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| tests/unit/modules/dcnm/dcnm_maintenance_mode/utils.py | Collapsed multi-line imports to single lines |
| tests/unit/modules/dcnm/dcnm_maintenance_mode/test_dcnm_maintenance_mode_want.py | Reformatted imports to single lines |
| tests/unit/modules/dcnm/dcnm_maintenance_mode/test_dcnm_maintenance_mode_query.py | Reformatted imports, added blank line after class docstring per PEP 257 |
| tests/unit/modules/dcnm/dcnm_maintenance_mode/test_dcnm_maintenance_mode_params_spec.py | Collapsed multi-line imports to single lines |
| tests/unit/modules/dcnm/dcnm_maintenance_mode/test_dcnm_maintenance_mode_merged.py | Reformatted imports and collapsed long statements |
| tests/unit/modules/dcnm/dcnm_maintenance_mode/test_dcnm_maintenance_mode_common.py | Collapsed multi-line imports to single lines |
| plugins/modules/dcnm_maintenance_mode.py | Added blank line between import groups, collapsed long statements |
| plugins/module_utils/common/maintenance_mode_info.py | Reordered imports alphabetically, collapsed long statements |
| plugins/module_utils/common/maintenance_mode.py | Reformatted imports and collapsed long statements |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Summary
There are no functional changes in this PR.
Run black and isort linters against all files directly-related to the dcnm_maintenance_mode module.
Notes for reviewers
Files changed