Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Consolidate formatting check and fix script to one
Summary: To reduce discrepandcies of ruff format checking and fixing, we want to use the same script to do both The script can be used in both CI and locally. ``` sh scripts/run_ruff.sh sh scripts/run_ruff.sh --fix sh scripts/run_ruff.sh --check ``` Test Plan: 1. fix sh scripts/run_ruff.sh sh scripts/run_ruff.sh --fix All checks passed! All checks passed! All checks passed! 142 files left unchanged 2. check sh scripts/run_ruff.sh --check All checks passed! All checks passed! All checks passed! 142 files already formatted 3. unknown sh scripts/run_ruff.sh --unknown Usage: scripts/run_ruff.sh [options] Options: --fix Fix format (default) --check Check for formatting issues Reviewers: Subscribers: Tasks: Tags:
- Loading branch information