Skip to content

workflows: Fix YAML indentation in pylint.yml - #967

Merged
PraveenPenguin merged 3 commits into
open-power:masterfrom
PraveenPenguin:fix_pylint
Jun 9, 2026
Merged

workflows: Fix YAML indentation in pylint.yml#967
PraveenPenguin merged 3 commits into
open-power:masterfrom
PraveenPenguin:fix_pylint

Conversation

@PraveenPenguin

Copy link
Copy Markdown
Collaborator

Fix indentation issues in the GitHub Actions pylint workflow file:

  • Replace tabs with spaces for consistent formatting
  • Correct indentation in the 'on:' trigger section
  • Ensure proper 2-space YAML indentation throughout

This fixes YAML parsing errors that would prevent the workflow from running correctly.

Fix indentation issues in the GitHub Actions pylint workflow file:
- Replace tabs with spaces for consistent formatting
- Correct indentation in the 'on:' trigger section
- Ensure proper 2-space YAML indentation throughout

This fixes YAML parsing errors that would prevent the workflow
from running correctly.

Signed-off-by: Praveen K Pandey <praveen@linux.ibm.com>
Add pylint configuration file to disable style/convention checks
that are not critical while keeping important error checks enabled.

This configuration:
- Disables style issues (naming, docstrings, line length, etc.)
- Disables refactoring suggestions (too-many-*, complexity, etc.)
- Disables false positive errors (dynamic attributes, imports, etc.)
- Keeps real bugs enabled (undefined variables, syntax errors, etc.)
- Focuses on code correctness over style consistency

The goal is to make pylint pass in CI while allowing the codebase
to maintain its current style and gradually improve over time.

Signed-off-by: Praveen K Pandey <praveen@linux.ibm.com>
Fix critical pylint E0601 errors where variables were used before
being assigned in all code paths.

Crashtool.py:
- Initialize required_pkgs to empty list
- Add else clause to handle unknown distros gracefully
- Log warning and return early for unsupported distros

GcovSetup.py:
- Add missing import for OpTestError
- Initialize src_path to None before conditional assignment
- Raise OpTestError for unsupported distros

SecureBoot.py:
- Initialize part_list to empty list before conditional assignment
- Ensures variable is defined even if skipTest is called

TrustedBoot.py:
- Initialize part_list to empty list before conditional assignment
- Ensures variable is defined even if skipTest is called

These fixes ensure all variables are properly initialized before use,
preventing potential runtime errors and making the code more robust.

Signed-off-by: Praveen K Pandey <praveen@linux.ibm.com>
@PraveenPenguin

Copy link
Copy Markdown
Collaborator Author

as this pylint fix .. Accpeting changes in priority

@PraveenPenguin
PraveenPenguin merged commit 3f0f201 into open-power:master Jun 9, 2026
4 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.

1 participant