lemoncurry/.pre-commit-config.yaml

42 lines
1.1 KiB
YAML
Raw Permalink Normal View History

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
2023-08-10 02:48:42 -04:00
rev: v4.4.0
hooks:
2023-08-10 02:48:42 -04:00
- id: check-ast
- id: check-builtin-literals
- id: check-case-conflict
2023-08-10 02:48:42 -04:00
- id: check-docstring-first
- id: check-executables-have-shebangs
- 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
- id: check-yaml
2023-08-10 02:48:42 -04:00
- id: destroyed-symlinks
- id: end-of-file-fixer
2023-08-10 02:48:42 -04:00
- id: fix-byte-order-marker
- 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
- repo: local
hooks:
- id: pytest
name: Check pytest unit tests pass
2023-08-10 02:30:06 -04:00
entry: poetry run pytest
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
pass_filenames: false
language: system
types: [python]