# See https://pre-commit.com for more information # See https://pre-commit.com/hooks.html for more hooks repos: - 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-toml - id: check-added-large-files args: ['--maxkb=6000'] - id: check-merge-conflict - id: check-case-conflict - id: check-docstring-first - id: debug-statements - id: mixed-line-ending args: ['--fix=lf'] - repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.7.4 hooks: # Run the linter - id: ruff args: ['--fix'] # Run the formatter - id: ruff-format # Uncomment to enable mypy type checking (requires adding mypy and type stubs to dev dependencies) # - repo: https://github.com/pre-commit/mirrors-mypy # rev: v1.11.2 # hooks: # - id: mypy # additional_dependencies: ['types-PyYAML'] # args: ['--ignore-missing-imports', '--no-strict-optional'] # exclude: '^tests/' # Set this to allow pre-commit to work with uv or other package managers default_language_version: python: python3.10