add pre-commit configuration

This commit is contained in:
Grzegorz Bokota
2020-06-19 21:12:12 +02:00
parent a1db0f7ebb
commit 3b1f0dd453
+22
View File
@@ -0,0 +1,22 @@
repos:
- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.1
hooks:
- id: flake8
pass_filenames: true
# this seems to need to be here in addition to setup.cfg
exclude: cibuildwheel/resources/
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-json
- id: check-yaml
- id: check-merge-conflict
- id: end-of-file-fixer
- repo: https://github.com/pre-commit/mirrors-mypy
rev: '' # Use the sha / tag you want to point at
hooks:
- id: mypy
args: [--strict]
files: cibuildwheel/*
exclude: test|cibuildwheel/resources