-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
58 lines (58 loc) · 1.34 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
default_stages: [push]
default_language_version:
python: python3.9
repos:
- repo: local
hooks:
- id: isort
stages: [commit,push]
name: isort
entry: isort -rc
language: system
types: [python]
- id: black
stages: [commit,push]
name: black
entry: black -S .
language: system
types: [python]
- id: mypy
stages: [commit,push]
name: mypy
entry: mypy --ignore-missing-imports
language: system
types: [python]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.1.0
hooks:
- id: trailing-whitespace
stages: [commit,push]
- id: check-added-large-files
- id: check-ast
stages: [commit,push]
- id: check-case-conflict
- id: check-byte-order-marker
- id: check-executables-have-shebangs
- id: check-docstring-first
stages: [commit,push]
- id: check-json
- id: check-merge-conflict
stages: [commit,push]
- id: check-symlinks
- id: check-vcs-permalinks
- id: check-xml
- id: check-yaml
exclude: ^chart/ds-packages/templates/
- id: debug-statements
- id: detect-aws-credentials
stages: [commit,push]
args: ['--allow-missing-credentials']
- id: detect-private-key
- id: flake8
stages: [commit,push]
- id: forbid-new-submodules
- id: no-commit-to-branch
stages: [commit,push]
args:
- --branch=develop
- --branch=master