Skip to content

Instantly share code, notes, and snippets.

@bbelderbos
Created August 24, 2023 08:44

Revisions

  1. bbelderbos created this gist Aug 24, 2023.
    34 changes: 34 additions & 0 deletions .pre-commit-config.yaml-example
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,34 @@
    repos:
    - repo: https://github.com/psf/black
    rev: 23.7.0
    hooks:
    - id: black
    args: [--line-length, "79"]

    - repo: https://github.com/pycqa/flake8
    rev: 6.1.0
    hooks:
    - id: flake8
    args: [--config=.flake8]

    - repo: https://github.com/PyCQA/isort
    rev: 5.12.0
    hooks:
    - id: isort
    args: [--profile, black]

    - repo: https://github.com/asottile/pyupgrade
    rev: v3.10.1
    hooks:
    - id: pyupgrade

    - repo: https://github.com/pre-commit/mirrors-mypy
    rev: v1.5.1
    hooks:
    - id: mypy
    args: [--no-strict-optional, --ignore-missing-imports, --check-untyped-defs]

    - repo: https://github.com/getcodelimit/codelimit
    rev: 0.6.2
    hooks:
    - id: codelimit