forked from 00dani/lemoncurry
30 lines
827 B
YAML
30 lines
827 B
YAML
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
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: poetry run pytest
|
|
pass_filenames: false
|
|
language: system
|
|
types: [python]
|
|
- id: mypy
|
|
name: Check mypy static types match
|
|
entry: poetry run mypy . --ignore-missing-imports
|
|
pass_filenames: false
|
|
language: system
|
|
types: [python]
|