Files
nxnative-easy/dm/tools/lint_python_baseline.tsv
seeddsandv0lumehi 7f5ef4155e Lint Python tools in CI with a checker-specific baseline ratchet (#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>
2026-10-27 02:57:38 +08:00

45 KiB

1# toolfilerulecountmessage (dm/tools/lint_python.py; shrink with --update, never edit by hand to add)
2pyrightdm/gfx/tools/uepak.pyreportGeneralTypeIssues1Index 0 is out of range for type tuple[()]
3pyrightdm/ios/tools/pack_ipa.pyreportCallIssue1Expected 4 positional arguments
4pyrightdm/tools/patch_nso.pyreportWildcardImportFromLibrary1Wildcard import from a library not allowed
5pyrightdm/tools/sdis.pyreportWildcardImportFromLibrary1Wildcard import from a library not allowed
6ruffdm/gfx/tools/dmsh_build.pyF8411Local variable `sb_cb` is assigned to but never used
7ruffdm/gfx/tools/pso_offline.pyF4011`shutil` imported but unused
8ruffdm/gfx/tools/shader_split.pyB0061Do not use mutable data structures for argument defaults
9ruffdm/gfx/tools/shader_split.pyB0231Function definition does not bind loop variable `c`
10ruffdm/gfx/tools/shader_split.pyB0231Function definition does not bind loop variable `order`
11ruffdm/gfx/tools/shader_split.pyB0231Function definition does not bind loop variable `tab`
12ruffdm/gfx/tools/shader_split.pyB0233Function definition does not bind loop variable `r`
13ruffdm/gfx/tools/shader_split.pyB0233Function definition does not bind loop variable `sec`
14ruffdm/gfx/tools/shader_split.pyB0233Function definition does not bind loop variable `secs`
15ruffdm/gfx/tools/shader_split.pyF8411Local variable `pre` is assigned to but never used
16ruffdm/gfx/tools/unityfs.pyB0232Function definition does not bind loop variable `buf`
17ruffdm/tools/patch_nso.pyB0231Function definition does not bind loop variable `at`
18ruffdm/tools/patch_nso.pyB0232Function definition does not bind loop variable `n`
19ruffdm/tools/patch_nso.pyPIE8081Unnecessary `start` argument in `range`
20ruffdm/tools/sdis.pyF8411Local variable `lo` is assigned to but never used
21ruffdm/tools/tests/test_gpuprof.pyF4011`os` imported but unused
22ruffdm/tools/tests/test_gpuprof.pyF4011`sys` imported but unused
23ruffdm/tools/tests/test_image_atomic_bounds.pyB0231Function definition does not bind loop variable `dependencies`
24ruffdm/tools/tests/test_nsp_incremental.pyB0231Function definition does not bind loop variable `build`
25ruffdm/tools/tests/test_nsp_incremental.pyB0231Function definition does not bind loop variable `own`
26ruffdm/tools/tests/test_nsp_incremental.pyB0231Function definition does not bind loop variable `roots`
27ruffdm/tools/tests/test_nsp_incremental.pyB0231Function definition does not bind loop variable `sh`
28ruffdm/tools/tests/test_nsp_nsz.pyF4011`sys` imported but unused
29ruffdm/tools/tests/test_spin_waits.pyF4011`sys` imported but unused
30ruffscripts/bench.pyB0231Function definition does not bind loop variable `ok`
31ruffscripts/build_ipa_from_nsp.pyB0201Loop control variable `note` overrides iterable it iterates
32ruffscripts/build_ipa_from_nsp.pyF4011`zlib` imported but unused