41 lines
1.1 KiB
YAML
41 lines
1.1 KiB
YAML
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.4.0
|
|
hooks:
|
|
- id: check-ast
|
|
- id: check-builtin-literals
|
|
- id: check-case-conflict
|
|
- id: check-docstring-first
|
|
- id: check-executables-have-shebangs
|
|
- id: check-json
|
|
- id: check-merge-conflict
|
|
- id: check-symlinks
|
|
- id: check-toml
|
|
- id: check-vcs-permalinks
|
|
- id: check-yaml
|
|
- id: destroyed-symlinks
|
|
- id: end-of-file-fixer
|
|
- id: fix-byte-order-marker
|
|
- id: mixed-line-ending
|
|
args:
|
|
- --fix=lf
|
|
- id: trailing-whitespace
|
|
- repo: https://github.com/psf/black
|
|
rev: 23.7.0
|
|
hooks:
|
|
- id: black
|
|
language_version: python3.11
|
|
- 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]
|