Unverified Commit 00297c0e authored by Philipp Sommer's avatar Philipp Sommer
Browse files

Add pre-commit configuration

parent ecbcb64c
# https://pre-commit.com/
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
# isort should run before black as black sometimes tweaks the isort output
- repo: https://github.com/PyCQA/isort
rev: 5.9.3
hooks:
- id: isort
args:
- --profile
- black
- --line-length
- "79"
- --filter-files
- -skip-gitignore
- --float-to-top
- -p
- demessaging
# https://github.com/python/black#version-control-integration
- repo: https://github.com/psf/black
rev: 21.9b0
hooks:
- id: black
- repo: https://github.com/keewis/blackdoc
rev: v0.3.4
hooks:
- id: blackdoc
- repo: https://gitlab.com/pycqa/flake8
rev: 3.9.2
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.910
hooks:
- id: mypy
# Copied from setup.cfg
args: [--ignore-missing-imports]
additional_dependencies: [pydantic]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment