projet-long/.pre-commit-config.yaml
Laurent Fainsin 8ca80e200e feat: add poetry pre-commit hook
Former-commit-id: d0a25423f2a27959a501630ea5b5e4e20a0fe27c [formerly 4f3fe92fc25c3a4d87026dc0baf5b1e46806fca9]
Former-commit-id: 59564e98854879c609b05701134094a6255b9c17
2022-09-12 14:24:05 +02:00

47 lines
1.1 KiB
YAML

repos:
- repo: https://github.com/asottile/pyupgrade
rev: "v2.37.3"
hooks:
- id: pyupgrade
- repo: https://github.com/python-poetry/poetry
rev: "1.2.0rc1"
hooks:
- id: poetry-check
- id: poetry-lock
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v4.3.0"
hooks:
# - id: check-added-large-files
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: check-symlinks
# - id: check-json
- id: check-toml
- id: check-yaml
- id: debug-statements
- id: destroyed-symlinks
- id: detect-private-key
- id: end-of-file-fixer
- id: fix-byte-order-marker
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v0.971"
hooks:
- id: mypy
- repo: https://github.com/pycqa/isort
rev: "5.10.1"
hooks:
- id: isort
name: isort (python)
- repo: https://github.com/psf/black
rev: "22.8.0"
hooks:
- id: black
language_version: python