-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pre-commit-config.yaml
37 lines (34 loc) · 1000 Bytes
/
.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
25
26
27
28
29
30
31
32
33
34
35
36
37
# git -pre-commit hook configuration.
# Run
# pre-commit install
# to use it in a repository, then copy this file as .pre-commit-config.yaml
# and relint.yml as .relint.yml to the working copy root.
# https://pre-commit.com/ for main documentation,
# https://pre-commit.com/hooks.html for additional hooks.
default_language_version: # needed so that relint doesn't use system default Python version
python: python3
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
# Generally good ideas
- id: check-case-conflict
- id: check-merge-conflict
- id: check-symlinks
# Whitespace cleanup
- id: end-of-file-fixer
- id: trailing-whitespace
# File formats
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: check-yaml
- id: check-json
- id: check-toml
- id: check-xml
# Secrets
- id: detect-private-key
# General
- repo: https://github.com/codingjoe/relint
rev: 1.2.0
hooks:
- id: relint