# pre-commit > pre-commit Run pre-commit across all files with a restored cache. Run actions/checkout and the setup-python action first. ruff / ruff-format are skipped by default -- the python-lint action (or the lint job) already covers them. ## Inputs | Input | Required | Default | Description | |---|---|---|---| | `sync` | no | `uv sync --group lint` | uv sync command to make the project importable for the hooks. | | `skip` | no | `ruff,ruff-format` | Comma-separated hook ids to skip (passed as the SKIP env var). | ## Usage ```yaml - uses: actions/checkout@v6 - uses: FSHTech/github-actions/pre-commit@v1 ```