Skip to content

ci(style): run pycodestyle over the whole repo, not just evalbench - #612

Merged
omkargaikwad23 merged 4 commits into
mainfrom
chore/viewer-style-cleanup
Sep 17, 2026
Merged

omkargaikwad23 merged 4 commits into
mainfrom
chore/viewer-style-cleanup

Conversation

@omkargaikwad23

Copy link
Copy Markdown
Collaborator

Stacked on #608 — repo-wide lint cannot pass until the viewer cleanup lands.

Summary

The style job ran pycodestyle evalbench only, so anything outside the core library was silently unlinted until someone remembered to add it. Pointing the job at the repo root inverts that default: new packages are covered automatically.

Coverage goes from 264 to 285 tracked Python files — adding viewer/ (15), the non-converter datasets/ scripts (3), verifier/, .ci/, and noxfile.py.

Also in this change:

  • noxfile.py — fixes its one E302.
  • .pycodestyle — excludes datasets/db-engine-convertor (1183 violations, a self-contained sub-project; cleaning it is a separate change), plus .git, .venv, and build so a local run matches CI instead of walking the virtualenv.

No new job and no path filter: pycodestyle needs no dependency install and the repo-wide run takes under 3 seconds.

Test plan

  • Repo-wide run is clean and takes ~2.7s
  • Clean clone at two different absolute paths both pass, confirming the nested datasets/db-engine-convertor exclude is not path-dependent
  • Passes on pycodestyle 2.11.0 and 2.13.0, since CI installs an unpinned version from apt
  • No tracked file is unintentionally excluded — only the 13 generated evalproto files and the 42 converter files

omkargaikwad23 and others added 2 commits September 17, 2026 08:52
The style check only covers the core library today, so viewer/ accumulated
283 violations. Clearing them lets the UI be linted in CI.

Whitespace only, apart from five `if x: y` one-liners split across two lines.
)

Only the core library was linted, so any new top-level package was silently
unchecked. Scoping the job to the repo root inverts that default.

datasets/db-engine-convertor is excluded for now; it carries 1183 violations
and is cleaned separately.
@omkargaikwad23

Copy link
Copy Markdown
Collaborator Author

/gcbrun

Zizmor blocks the PR on unpinned-uses, which is a mandatory check that
cannot be suppressed inline. Match verify-package.yml: SHA-pinned actions,
read-all permissions, and no persisted checkout credentials.
@omkargaikwad23
omkargaikwad23 merged commit 2d2cf2f into main Sep 17, 2026
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants