-
Notifications
You must be signed in to change notification settings - Fork 3
/
.pre-commit-config.yaml
24 lines (24 loc) · 1.55 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-added-large-files # Prevent giant files from being committed
- id: check-byte-order-marker # forbid files which have a UTF-8 byte-order marker
- id: check-case-conflict # Check for files that would conflict in case-insensitive filesystems
- id: check-executables-have-shebangs # Ensures that (non-binary) executables have a shebang.
- id: check-json # This hook checks json files for parseable syntax.
- id: pretty-format-json # This hook sets a standard for formatting JSON files.
- id: check-merge-conflict # Check for files that contain merge conflict strings.
- id: check-symlinks # Checks for symlinks which do not point to anything.
- id: check-xml # This hook checks xml files for parseable syntax.
- id: destroyed-symlinks # Detects symlinks which are changed to regular files with a content of a path which that symlink was pointing to.
- id: detect-private-key # Detects the presence of private keys
- id: end-of-file-fixer # Ensures that a file is either empty, or ends with one newline.
- id: fix-byte-order-marker # removes UTF-8 byte order marker
- id: forbid-new-submodules # Prevent addition of new git submodules
- id: mixed-line-ending # Replaces or checks mixed line ending
- id: trailing-whitespace # This hook trims trailing whitespace.
- repo: https://github.com/psf/black
rev: 22.12.0
hooks:
- id: black