You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[py] Improve ruff linting DX and CI speed (#17588)
- Unify ruff_check.py + ruff_format.py into a single ruff.py that
accepts check/format/both modes; eliminates duplicated dirs, excludes,
and config references. Adds //py:ruff target for running both at once.
- Fix --exit-non-zero-on-fix footgun: ruff_check now exits 0 when all
issues are auto-fixed. CI verification mode uses --no-fix explicitly.
- Add ruff check to scripts/format.sh (always, not just with --lint),
resolving the ruff binary once via --run_under=echo to halve Bazel
startup overhead. Auto-fixable lint issues are now committed by the
CI bot alongside formatting fixes.
- Update py:lint to use --no-fix (pure verification, no side effects).
- Split ci-python.yml lint job into parallel lint-ruff / lint-mypy /
lint-docs jobs so mypy does not block ruff feedback.
0 commit comments