[UPDT] Avoid formatting the __init__.py files from the migrations folder during pre-commit hook

This commit is contained in:
Horilla
2025-11-07 14:14:45 +05:30
parent 42a57c4252
commit eecf9ae2e5

View File

@@ -4,18 +4,17 @@ repos:
hooks: hooks:
- id: check-yaml - id: check-yaml
- id: end-of-file-fixer - id: end-of-file-fixer
exclude: ^.*/migrations/.*$ exclude: ^.*/migrations/
- id: trailing-whitespace - id: trailing-whitespace
exclude: ^.*/migrations/.*$ exclude: ^.*/migrations/
- repo: https://github.com/psf/black-pre-commit-mirror - repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.4.2 rev: 24.4.2
hooks: hooks:
- id: black - id: black
language_version: python3.10 exclude: ^.*/migrations/
exclude: ^.*/migrations/.*$
- repo: https://github.com/pycqa/isort - repo: https://github.com/pycqa/isort
rev: 5.13.2 rev: 5.13.2
hooks: hooks:
- id: isort - id: isort
args: ["--profile", "black", "--filter-files"] args: ["--profile", "black", "--filter-files"]
exclude: ^.*/migrations/.*$ exclude: ^.*/migrations/