unhacs/.pre-commit-config.yaml

30 lines
797 B
YAML
Raw Normal View History

2024-06-04 22:20:13 +00:00
---
repos:
- repo: https://github.com/psf/black
rev: 24.4.2
2024-06-04 22:20:13 +00:00
hooks:
- id: black
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
2024-06-04 22:20:13 +00:00
hooks:
- id: check-added-large-files
- id: check-merge-conflict
- id: debug-statements
- id: end-of-file-fixer
- id: trailing-whitespace
- id: name-tests-test
exclude: tests/(common.py|util.py|(helpers|integration/factories)/(.+).py)
- repo: https://github.com/pycqa/isort
rev: 5.13.2
2024-06-04 22:20:13 +00:00
hooks:
- id: isort
2024-07-06 21:21:30 +00:00
args: ["--profile", "black", "--filter-files"]
2024-06-04 22:20:13 +00:00
- repo: https://github.com/pre-commit/mirrors-mypy
2024-07-06 21:21:30 +00:00
rev: v1.10.1
2024-06-04 22:20:13 +00:00
hooks:
- id: mypy
exclude: docs/
additional_dependencies:
- types-requests
2024-07-06 22:01:27 +00:00
- types-PyYAML