Repository navigation
CHORE: Enforce ruff pydocstyle D rules with available autofixes - #6520
Merged
Samuelopez-ansys merged 21 commits intoAug 13, 2025
Merged
Samuelopez-ansys merged 21 commits into
Samuelopez-ansys merged 21 commits into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6520 +/- ##
==========================================
+ Coverage 81.90% 81.92% +0.01%
==========================================
Files 236 236
Lines 75731 75731
==========================================
+ Hits 62030 62043 +13
+ Misses 13701 13688 -13 🚀 New features to boost your workflow:
|
Samuelopez-ansys
deleted the
chore/enforce-ruff-pydocstyle-D-rules-with-autofixes
branch
August 13, 2025 06:17
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR applies autofixes proposed by
rufffor a set of D rules (related to pydocstyle, see https://docs.astral.sh/ruff/rules/#pydocstyle-d), which were until now ignored as per the configuration defined in thepyproject.tomlfile. The list of ignored linting rules forruffis updated accordingly.These particular rules are essentially related to the formatting of docstrings and missing or unwanted blank lines in files. Therefore, even though this PR introduces a large amount of changes and affects a substantial number of files, the underlying modifications really are of limited scope.
As for the previous
ruff-related PRs, this effort is part of the migration ofpyaedttowards usingrufffor code formatting and linting, as requested in issue #4775.This PR is also contributing to the efforts described in issue #5504.
A few modifications are also shipped with this PR on top of the fixes for the enforced D rules:
ruffpre-commit hook in the.pre-commit-config.yamlfile is updated to the latest release,ruff I001error (unsorted/unformatted import block) is fixed,PTH111andPTH204rules are removed from the ignore list forruff, since no errors are being reported for them inpyaedtany longer.Issue linked
Related to #4775 and #5504.