-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy path.pre-commit-config.yaml
38 lines (37 loc) · 1.03 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
repos:
- repo: local
hooks:
- id: fmt
name: fmt-local
description: 'Format Python code'
language: system
types: [python]
entry: make fmt
pass_filenames: false
- id: lint
name: lint-local
description: 'Lint Python code'
language: system
types: [python]
entry: make lint
pass_filenames: false
- repo: https://github.com/pre-commit/pre-commit-hooks
sha: v4.0.1
hooks:
- id: check-ast
- id: check-case-conflict
- id: check-docstring-first
- id: check-merge-conflict
- id: check-executables-have-shebangs
- id: check-symlinks
- id: check-vcs-permalinks
- id: check-xml
- id: check-yaml
- id: debug-statements
- id: detect-aws-credentials
args: ["--allow-missing-credentials"]
- id: detect-private-key
- id: end-of-file-fixer
exclude: '(?:.*/)?\.bumpversion\.cfg$'
- id: trailing-whitespace
exclude: '(?:.*/)?\.bumpversion\.cfg$'