-
Notifications
You must be signed in to change notification settings - Fork 3
/
.pre-commit-config.yaml
49 lines (49 loc) · 1.24 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
---
repos:
- repo: https://github.com/psf/black
rev: 20.8b1
hooks:
- id: black
name: Black
types: [python]
args: ['-l', '110']
- repo: https://github.com/timothycrosley/isort
rev: 5.6.4
hooks:
- id: isort
name: Run isort to sort imports
args: ['--multi-line', '3', '--trailing-comma']
files: \.py$
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.1.6
hooks:
- id: forbid-tabs
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.2.3
hooks:
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: debug-statements
- id: detect-private-key
- id: end-of-file-fixer
- id: mixed-line-ending
- id: requirements-txt-fixer
- id: trailing-whitespace
- id: fix-encoding-pragma
args:
- --remove
- repo: local
hooks:
- id: pylint
name: Checks for common programming errors with pylint
language: python
entry: pylint
require_serial: true
files: \.py$
- repo: local
hooks:
- id: generate_dag
name: Generate diagnosis DAG
language: system
entry: python generate.py
files: \.py$