2018-04-18 20:25:23 -04:00
|
|
|
repos:
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2019-01-16 19:44:15 -05:00
|
|
|
rev: v2.1.0
|
2018-04-18 20:25:23 -04:00
|
|
|
hooks:
|
|
|
|
- id: check-byte-order-marker
|
|
|
|
- id: check-case-conflict
|
2018-06-03 20:06:36 -04:00
|
|
|
- id: check-executables-have-shebangs
|
2018-04-18 20:25:23 -04:00
|
|
|
- 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
|
2018-06-03 20:32:24 -04:00
|
|
|
- repo: local
|
|
|
|
hooks:
|
|
|
|
- id: pytest
|
|
|
|
name: Check pytest unit tests pass
|
2023-08-10 02:30:06 -04:00
|
|
|
entry: poetry run pytest
|
2018-06-03 20:32:24 -04:00
|
|
|
pass_filenames: false
|
|
|
|
language: system
|
|
|
|
types: [python]
|
|
|
|
- id: mypy
|
|
|
|
name: Check mypy static types match
|
2023-08-10 02:30:06 -04:00
|
|
|
entry: poetry run mypy . --ignore-missing-imports
|
2018-06-03 20:32:24 -04:00
|
|
|
pass_filenames: false
|
|
|
|
language: system
|
|
|
|
types: [python]
|