diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index aeb15a7..be3244a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,10 +14,11 @@ repos: - id: django-upgrade args: ["--target-version", "3.2"] - - repo: https://github.com/psf/black - rev: 23.3.0 + - repo: https://github.com/charliermarsh/ruff-pre-commit + rev: v0.0.262 hooks: - - id: black + - id: ruff + args: [--fix, --exit-non-zero-on-fix] - repo: https://github.com/pycqa/isort rev: 5.12.0 @@ -25,10 +26,10 @@ repos: - id: isort args: ["--profile", "black"] - - repo: https://github.com/charliermarsh/ruff-pre-commit - rev: v0.0.262 + - repo: https://github.com/psf/black + rev: 23.3.0 hooks: - - id: ruff + - id: black - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.4.0