2018-04-18 20:25:23 -04:00
|
|
|
repos:
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2023-08-10 02:48:42 -04:00
|
|
|
rev: v4.4.0
|
2018-04-18 20:25:23 -04:00
|
|
|
hooks:
|
2023-08-10 02:48:42 -04:00
|
|
|
- id: check-ast
|
|
|
|
- id: check-builtin-literals
|
2018-04-18 20:25:23 -04:00
|
|
|
- id: check-case-conflict
|
2023-08-10 02:48:42 -04:00
|
|
|
- id: check-docstring-first
|
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
|
2023-08-10 02:48:42 -04:00
|
|
|
- id: check-symlinks
|
|
|
|
- id: check-toml
|
|
|
|
- id: check-vcs-permalinks
|
2018-04-18 20:25:23 -04:00
|
|
|
- id: check-yaml
|
2023-08-10 02:48:42 -04:00
|
|
|
- id: destroyed-symlinks
|
2018-04-18 20:25:23 -04:00
|
|
|
- id: end-of-file-fixer
|
2023-08-10 02:48:42 -04:00
|
|
|
- id: fix-byte-order-marker
|
2018-04-18 20:25:23 -04:00
|
|
|
- id: mixed-line-ending
|
|
|
|
args:
|
|
|
|
- --fix=lf
|
|
|
|
- id: trailing-whitespace
|
2023-08-10 02:48:42 -04:00
|
|
|
- repo: https://github.com/psf/black
|
|
|
|
rev: 23.7.0
|
|
|
|
hooks:
|
|
|
|
- id: black
|
|
|
|
language_version: python3.11
|
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]
|