lemoncurry/.pre-commit-config.yaml

31 lines
827 B
YAML
Raw Permalink Normal View History

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
2019-01-16 19:44:15 -05:00
rev: v2.1.0
hooks:
- id: check-byte-order-marker
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-json
- id: check-merge-conflict
- id: check-yaml
- id: end-of-file-fixer
- id: flake8
- id: mixed-line-ending
args:
- --fix=lf
- id: trailing-whitespace
- repo: local
hooks:
- id: pytest
name: Check pytest unit tests pass
entry: pipenv run pytest
pass_filenames: false
language: system
types: [python]
- id: mypy
name: Check mypy static types match
entry: pipenv run mypy . --ignore-missing-imports
pass_filenames: false
language: system
types: [python]