-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
49 lines (47 loc) · 1.2 KB
/
.pre-commit-config.yaml
File metadata and controls
49 lines (47 loc) · 1.2 KB
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/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-ast
- id: check-builtin-literals
- id: check-case-conflict
- id: check-merge-conflict
- id: check-yaml
args: [--unsafe]
- id: debug-statements
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 24.10.0
hooks:
- id: black
args: [-t, py311]
- repo: https://github.com/PyCQA/flake8
rev: 7.1.0
hooks:
- id: flake8
args:
[
"--count",
"--extend-ignore=E203,E501",
"--show-source",
"--statistics",
]
- repo: local
hooks:
- id: check-dag-name
name: Check dag.py for valid name
entry: python hooks/check_dag_name.py
language: system
types: [python]
always_run: true
files: ^dag/dag\.py$
- repo: local
hooks:
- id: check-configuration-yaml
name: Check configuration.yaml
entry: python hooks/check_config.py
language: system
types: [python, yaml]
always_run: true
files: ^dag/configuration\.yaml$