diff --git a/README.md b/README.md index 1da78af..249fb00 100644 --- a/README.md +++ b/README.md @@ -16,11 +16,22 @@ Add this to your `.pre-commit-config.yaml`: ```yaml - repo: https://github.com/charliermarsh/ruff-pre-commit # Ruff version. - rev: 'v0.0.241' + rev: 'v0.0.245' hooks: - id: ruff ``` +Or, to enable autofix: + +```yaml +- repo: https://github.com/charliermarsh/ruff-pre-commit + # Ruff version. + rev: 'v0.0.245' + hooks: + - id: ruff + args: [--fix, --exit-non-zero-on-fix] +``` + ## License MIT