1
0
Fork 0
mirror of https://github.com/dragonflydb/dragonfly.git synced 2024-12-14 11:58:02 +00:00
dragonflydb-dragonfly/.pre-commit-config.yaml
Kostas Kyrimis 7944af3c62
feat: Add black formatter to the project (#1544)
Add black formatter and run it on pytests
2023-07-17 13:13:12 +03:00

31 lines
702 B
YAML

default_stages: [commit]
exclude: |
(?x)(
src/redis/.* |
contrib/charts/dragonfly/ci/.*
)
repos:
- repo: local
hooks:
- id: conventional-commits
name: Conventional Commit Minder
entry: contrib/scripts/conventional-commits
language: script
stages: [commit-msg]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v14.0.6
hooks:
- id: clang-format
name: Clang formatting
- repo: https://github.com/psf/black
rev: 23.7.0
hooks:
- id: black