From 3ccf3146ebf49a3e0bca5f79cf3bb83e8191121c Mon Sep 17 00:00:00 2001 From: Mike Date: Sun, 1 Sep 2024 08:27:45 -0700 Subject: [PATCH] ci(pre-commit): replace black with ruff for linting and formatting --- .pre-commit-config.yaml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 578f182..7f26c97 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,12 +9,15 @@ repos: - id: check-added-large-files - id: mixed-line-ending -- repo: https://github.com/psf/black - rev: 24.8.0 +- repo: https://github.com/astral-sh/ruff-pre-commit + # Ruff version. + rev: v0.6.3 hooks: - - id: black - language_version: python3 - entry: black --target-version=py36 + # Run the linter. + - id: ruff + args: [ --fix ] + # Run the formatter. + - id: ruff-format - repo: https://github.com/remastr/pre-commit-django-check-migrations rev: v0.1.0