(ruff, exclude_args, dirs, extra_args)
| 44 | |
| 45 | |
| 46 | def run_format(ruff, exclude_args, dirs, extra_args): |
| 47 | cmd = [ruff, "format", "--config=py/pyproject.toml"] |
| 48 | return subprocess.run(cmd + exclude_args + dirs + extra_args).returncode |
| 49 | |
| 50 | |
| 51 | if __name__ == "__main__": |