Skip to content
Snippets Groups Projects
.pre-commit-config.yaml 1.19 KiB
# 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.2.0
    hooks:
    -   id: end-of-file-fixer
    -   id: check-added-large-files
    -   id: check-toml
    -   id: check-docstring-first
    -   id: detect-private-key
    -   id: trailing-whitespace
    -   id: check-yaml
    -   id: debug-statements
    -   id: check-merge-conflict
    -   id: check-ast
-   repo: https://github.com/psf/black
    rev: 22.3.0
    hooks:
    -   id: black
        files: app
        args: [--check]
-   repo: https://github.com/PyCQA/flake8
    rev: 4.0.1
    hooks:
    -   id: flake8
        files: app
        args: [--config=.flake8]
-   repo: https://github.com/pre-commit/mirrors-mypy
    rev: v0.960
    hooks:
    -   id: mypy
        files: app
        args: [--config=pyproject.toml]
        additional_dependencies:
            - sqlalchemy2-stubs
            - boto3-stubs-lite[s3]
            - sqlalchemy<2.0.0
            - pydantic
            - types-requests
-   repo: https://github.com/PyCQA/isort
    rev: 5.10.1
    hooks:
    -   id: isort
        files: app
        args: [-c]