From eecf9ae2e50113643c95a3c33915bc032f985a61 Mon Sep 17 00:00:00 2001 From: Horilla Date: Fri, 7 Nov 2025 14:14:45 +0530 Subject: [PATCH] [UPDT] Avoid formatting the __init__.py files from the migrations folder during pre-commit hook --- .pre-commit-config.yaml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index bfcf9c483..54144c484 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,18 +4,17 @@ repos: hooks: - id: check-yaml - id: end-of-file-fixer - exclude: ^.*/migrations/.*$ + exclude: ^.*/migrations/ - id: trailing-whitespace - exclude: ^.*/migrations/.*$ + exclude: ^.*/migrations/ - repo: https://github.com/psf/black-pre-commit-mirror rev: 24.4.2 hooks: - id: black - language_version: python3.10 - exclude: ^.*/migrations/.*$ + exclude: ^.*/migrations/ - repo: https://github.com/pycqa/isort rev: 5.13.2 hooks: - id: isort args: ["--profile", "black", "--filter-files"] - exclude: ^.*/migrations/.*$ + exclude: ^.*/migrations/