Add dependency flavour "lint" #176

Merged
Jan Lindemann merged 2 commits from jan/feature/20261110-add-the-lint-dependency-flavour-and-drop-the-imports-it-flags into master 2026-11-10 11:40:35 +01:00 AGit
Owner

This PR is the designed to be the first in a succession of PRs to further tighten static code checks. Currently CI doesn't run ruff and pyright checks, because they're not in the dependencies. Add them to OpenSUSE first, and fix the fallout.

lib.FilesContext: Drop unused and duplicate imports test

Ruff complains about unused and duplicate imports in FilesContext's test, fix that.

topdir.mk, project.conf: Add new dep flavour "lint"

Add a new dependency flavour named lint, in addition to the existing flavours run, build, devel and release, to declare the dependencies needed for static linting. Those are deliberately not lumped into the build flavour, because that might add dependencies that are hard to satisfy on some platforms that should remain buildable.

Start easy, with OpenSUSE only, because Tumbleweed provides pyright and ruff in its core repositories. That should be enough for a first canary in CI. Tighter linting should be added by follow-up PRs.

This PR is the designed to be the first in a succession of PRs to further tighten static code checks. Currently CI doesn't run `ruff` and `pyright` checks, because they're not in the dependencies. Add them to OpenSUSE first, and fix the fallout. #### lib.FilesContext: Drop unused and duplicate imports test `Ruff` complains about unused and duplicate imports in `FilesContext`'s test, fix that. #### topdir.mk, project.conf: Add new dep flavour "lint" Add a new dependency flavour named `lint`, in addition to the existing flavours run, build, devel and release, to declare the dependencies needed for static linting. Those are deliberately not lumped into the build flavour, because that might add dependencies that are hard to satisfy on some platforms that should remain buildable. Start easy, with OpenSUSE only, because Tumbleweed provides `pyright` and `ruff` in its core repositories. That should be enough for a first canary in CI. Tighter linting should be added by follow-up PRs.
Ruff complains about unused and duplicate imports in FilesContext's test,
fix that.

Assisted-by: unsloth/Qwen3.8-27B-GGUF:Q4_K_M with pi.dev v1.5.0
Signed-off-by: Jan Lindemann <jan@janware.com>
topdir.mk, project.conf: Add new dep flavour "lint"
All checks were successful
CI / Packaging - Kali Linux (pull_request) Successful in 5m10s
CI / Packaging - OpenSUSE Tumbleweed (pull_request) Successful in 5m43s
CI / Packaging test (pull_request) Successful in 0s
8752440bc0
Add a new dependency flavour named "lint", in addition to the existing
flavours run, build, devel and release, to declare the dependencies needed
for static linting. Those are deliberately not lumped into the build
flavour, because that might add dependencies that are hard to satisfy on
some platforms that should remain buildable.

Start easy, with OpenSUSE only, because Tumbleweed provides pyright and
ruff in its core repositories. That should be enough for a first canary in
CI. Tighter linting should be added by follow-up PRs.

Assisted-by: unsloth/Qwen3.8-27B-GGUF:Q4_K_M with pi.dev v1.5.1
Signed-off-by: Jan Lindemann <jan@janware.com>
Jan Lindemann scheduled this pull request to auto merge when all checks succeed 2026-11-10 11:29:41 +01:00
Jan Lindemann changed title from Add the lint dependency flavour and drop the imports it flags to Add lint dependency flavour 2026-11-10 11:30:41 +01:00
Jan Lindemann changed title from Add lint dependency flavour to Add dependency flavour "lint" 2026-11-10 11:31:04 +01:00
Jan Lindemann scheduled this pull request to auto merge when all checks succeed 2026-11-10 11:31:18 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
janware/jw-pkg!176
No description provided.