Add the pylint and ruff linters on top of the lint bits from PR497#526
Merged
jonasbardino merged 2 commits intonextfrom Apr 22, 2026
Merged
Conversation
…ake lint to the renamed style-check-python and lint-python targets.
…udes in linting targets and their eventual removal once we have addressed the code scan issues they currently trigger.
2b92434 to
b3522a9
Compare
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.
Extend #525 with ruff and pylint to get a more thorough linting of the paths pointed to by
LINT_ENFORCE_DIRS. It is still not enabled or applied to anything but the dummy package marker inmig/__init__.pybut prepared to be applied to all new code as per https://github.com/ucphhpc/migrid-sync/milestone/7 .One can test with
make lint-python LINT_ENFORCE_DIRS='./bin ./mig/lib ./sbin ./tests'or any other file or directory path inLINT_ENFORCE_DIRS.This PR was rebased to be quite a bit simpler after #525 was merged into
next.