Boilerplate

This commit is contained in:
Joachim Jablon
2021-07-23 23:52:25 +02:00
parent b85dc54819
commit 2cedb8b908
2 changed files with 48 additions and 0 deletions

35
.pre-commit-config.yaml Normal file
View File

@@ -0,0 +1,35 @@
# 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.0.1
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/psf/black
rev: "21.5b1"
hooks:
- id: black
- repo: https://github.com/PyCQA/isort
rev: "5.8.0"
hooks:
- id: isort
- repo: https://github.com/PyCQA/flake8
rev: "3.9.2"
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v0.812"
hooks:
- id: mypy
- repo: https://github.com/asottile/pyupgrade
rev: "v2.18.2"
hooks:
- id: pyupgrade