Skip to content

Add the pylint and ruff linters on top of the lint bits from PR497#526

Merged
jonasbardino merged 2 commits intonextfrom
adjust/add-pylint-and-ruff-to-the-make-lint-target
Apr 22, 2026
Merged

Add the pylint and ruff linters on top of the lint bits from PR497#526
jonasbardino merged 2 commits intonextfrom
adjust/add-pylint-and-ruff-to-the-make-lint-target

Conversation

@jonasbardino
Copy link
Copy Markdown
Contributor

@jonasbardino jonasbardino commented Apr 21, 2026

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 in mig/__init__.py but 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 in LINT_ENFORCE_DIRS.

This PR was rebased to be quite a bit simpler after #525 was merged into next.

@jonasbardino jonasbardino self-assigned this Apr 21, 2026
@jonasbardino jonasbardino added the enhancement New feature or request label Apr 21, 2026
@jonasbardino jonasbardino marked this pull request as ready for review April 21, 2026 14:56
@jonasbardino jonasbardino requested a review from a team April 21, 2026 14:56
…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.
@jonasbardino jonasbardino force-pushed the adjust/add-pylint-and-ruff-to-the-make-lint-target branch from 2b92434 to b3522a9 Compare April 21, 2026 22:17
Copy link
Copy Markdown
Contributor

@rasmunk rasmunk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved

@jonasbardino jonasbardino merged commit 1526ec8 into next Apr 22, 2026
14 checks passed
@jonasbardino jonasbardino deleted the adjust/add-pylint-and-ruff-to-the-make-lint-target branch April 22, 2026 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants