# Pre-commit hooks for Vocalinux # Run: pre-commit run --all-files repos: # Code formatting with Black - repo: https://github.com/psf/black rev: 26.1.0 hooks: - id: black language_version: python3 files: ^(src|tests)/ # Import sorting with isort (black-compatible) - repo: https://github.com/pycqa/isort rev: 5.13.2 hooks: - id: isort args: ["--profile", "black"] files: ^(src|tests)/ # Linting with flake8 (critical errors only) - repo: https://github.com/pycqa/flake8 rev: 7.0.0 hooks: - id: flake8 args: ["--select=E9,F63,F7,F82", "--max-line-length=100"] files: ^(src|tests)/ # Basic file checks - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.5.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer - id: check-yaml - id: check-added-large-files