Repository navigation
Conversation
26 of 42 tasks
Add .github/workflows/lint-python.yml: ruff (bug-finding rules only, no formatting) and pyright in basic mode over scripts/, dm/tools, dm/gfx/tools, dm/games/*.py, dm/ios/tools and dm/mac, configured in pyproject.toml, with the tool versions pinned in .github/requirements/lint.txt. Today's 414 findings (35 ruff, 379 pyright) are listed in dm/tools/lint_python_baseline.tsv, keyed by tool, file, rule and message with a count, so they survive line moves. dm/tools/lint_python.py fails on a finding beyond the baseline and on a fixed one still listed; --update only shrinks the baseline, and on pull requests --against fails when it grew over the base branch's. Only a raised tool version rewrites it. Astral's ty, a faster type checker, can replace pyright once it is stable.
v0lumehi
force-pushed
the
ci-lint-python
branch
from
October 26, 2026 18:03
7dddfae to
e40c044
Compare
seedds
added a commit
that referenced
this pull request
Oct 26, 2026
Add pinned ruff and pyright checks, the existing-findings baseline, and a workflow that rejects new findings and requires fixed findings to be removed. Compare checker pins numerically and permit baseline growth only for the checker whose release version increased. Comments, unrelated dependency edits and downgrades retain the guard. Add 10 regression tests using Git trees and document the policy. Validation: 14 guard/documentation tests pass; pinned lint reports 414 existing findings, zero new findings and zero stale baseline entries. Co-authored-by: v0lumehi <aljic.zijad@gmail.com>
Owner
|
Landed this on The integration also tightens the baseline guard: it compares the ruff and pyright release pins numerically and allows growth only for the checker whose version increased. Comment edits, unrelated dependency changes and checker downgrades cannot bypass the guard. Added 10 regression tests using temporary Git trees and documented the policy. Validation on top of current Closing this PR because the changes have landed. Thanks for the contribution. |
v0lumehi
added a commit
to v0lumehi/nxnative
that referenced
this pull request
Oct 26, 2026
Modules loaded from files go through one helper that checks the spec, the closures bind their loop variables, the f-strings parse on Python 3.10, and the frame-time comparisons check for missing values.
This was referenced Oct 26, 2026
Know-It-All-Brother
pushed a commit
to Know-It-All-Brother/nxnative
that referenced
this pull request
Nov 9, 2026
…dds#323) Add pinned ruff and pyright checks, the existing-findings baseline, and a workflow that rejects new findings and requires fixed findings to be removed. Compare checker pins numerically and permit baseline growth only for the checker whose release version increased. Comments, unrelated dependency edits and downgrades retain the guard. Add 10 regression tests using Git trees and document the policy. Validation: 14 guard/documentation tests pass; pinned lint reports 414 existing findings, zero new findings and zero stale baseline entries. Co-authored-by: v0lumehi <aljic.zijad@gmail.com>
ltrdpper
pushed a commit
to ltrdpper/BananaNative
that referenced
this pull request
Nov 16, 2026
…read take a free one it reads, in the order they press' (seedds#323) from Wick3dPhant0m/BananaNative:pad-fill into android
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.
Part of the roadmap in #313 (code quality checks in CI).
The Python toolchain (
dmsh_build.py,scripts/build_ipa_from_nsp.py, the shader split and its container readers,bench.py) has had no linter and no type checker so far. A typo in a branch that is rarely taken shows up only when someone builds exactly that case.What this adds
.github/workflows/lint-python.ymlruns ruff and pyright on every PR and on pushes to main.scripts/,dm/tools,dm/gfx/tools,dm/games/*.py,dm/ios/toolsanddm/mac. They are configured inpyproject.toml, and their versions are pinned in.github/requirements/lint.txt.dm/tools/lint_python_baseline.tsv. Each entry is keyed by tool, file, rule and message, with a count, so the entries survive line moves.dm/tools/lint_python.pyfails on a finding beyond the baseline, and on a fixed one that is still listed.--updateonly shrinks the baseline. On pull requests,--againstfails when the baseline grew over the base branch's.docs/development.md(continuous integration) says how to run the check locally and how to refresh the baseline.Checked
python3 dm/tools/lint_python.py: 414 findings, 414 in the baseline, 0 new, 0 fixed but still listed.test_docspasses.The existing findings are not fixed here. They are follow-ups, each one a small PR that shrinks the baseline.