Skip to content

Fix Python linting errors#5

Closed
greenc-FNAL wants to merge 4 commits intomainfrom
fix-python-linting-errors
Closed

Fix Python linting errors#5
greenc-FNAL wants to merge 4 commits intomainfrom
fix-python-linting-errors

Conversation

@greenc-FNAL
Copy link
Owner

This change fixes the majority of the Python linting errors reported in the GitHub Actions run. It addresses missing docstrings, unused variables, and unnecessary dict() calls.

There are a few remaining E501 (line too long) errors in scripts/check_codeql_alerts.py that I was unable to fix.

@greenc-FNAL greenc-FNAL force-pushed the fix-python-linting-errors branch from 8bf009f to 2ff1048 Compare December 2, 2025 22:58
- Ignore `D10[0-3]` (missing docstring)
@greenc-FNAL greenc-FNAL force-pushed the fix-python-linting-errors branch from 2ff1048 to 73e0d6b Compare December 2, 2025 23:42
@greenc-FNAL
Copy link
Owner Author

@jules Please fix the "missing docstring" errors as described in https://github.com/greenc-FNAL/phlex/actions/runs/19877188802/job/56967210201?pr=5 (D100, D101, D102, D103).

google-labs-jules bot and others added 3 commits December 2, 2025 18:01
Adds Google-style docstrings to public modules, classes, and functions in the 'scripts/' and 'test/python/' directories to resolve CI errors.
Resolves mypy errors in Python scripts by adding missing type annotations, handling potential `None` values, and correcting import statements.
@greenc-FNAL greenc-FNAL closed this Dec 3, 2025
@greenc-FNAL greenc-FNAL deleted the fix-python-linting-errors branch December 3, 2025 15:20
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