Skip to content
Snippets Groups Projects
.pre-commit-config.yaml 800 B
Newer Older
Rufai Omowunmi Balogun's avatar
Rufai Omowunmi Balogun committed
default_language_version:
  python: python3
repos:
  - repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v4.4.0
    hooks:
      - id: check-ast
      - id: check-merge-conflict
      - id: check-added-large-files
Rufai Omowunmi Balogun's avatar
Rufai Omowunmi Balogun committed
      - id: check-toml
      - id: check-yaml
Rufai Omowunmi Balogun's avatar
Rufai Omowunmi Balogun committed
  
  - repo: https://github.com/nbQA-dev/nbQA
    rev: 1.8.5
    hooks:
      - id: nbqa-ruff
        exclude: ^dist/
      - id: nbqa-mypy
        exclude: ^dist/

  - repo: https://github.com/pre-commit/mirrors-mypy
    rev: v1.9.0
    hooks:
      - id: mypy
        args: ["--no-strict-optional", "--ignore-missing-imports"]
        exclude: ^dist/


  - repo: https://github.com/astral-sh/ruff-pre-commit
    rev: v0.3.5
    hooks:
      - id: ruff
        args: [--fix, --exit-non-zero-on-fix, --]
      - id: ruff-format