forked from Chia-Network/chia-blockchain
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
89 lines (89 loc) · 2.34 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
89 lines (89 loc) · 2.34 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
repos:
- repo: local
hooks:
- id: check-sql
name: Validate SQL statements
entry: ./activated.py python -m chik._tests.check_sql_statements
language: system
pass_filenames: false
- repo: local
hooks:
- id: init_py_files
name: __init__.py files
entry: ./activated.py python chik/_tests/build-init-files.py -v --root .
language: system
pass_filenames: false
- repo: local
hooks:
- id: pyupgrade
name: pyupgrade
entry: ./activated.py pyupgrade --py38-plus --keep-runtime-typing
language: system
types: [python]
- repo: local
hooks:
- id: black
name: black
entry: ./activated.py black
language: system
require_serial: true
types_or: [python, pyi]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.1.0
hooks:
- id: prettier
types_or: [ini, json, toml, yaml]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: check-yaml
- id: mixed-line-ending
args: ["--fix=lf"]
- id: end-of-file-fixer
exclude: ".*?(.hex|.clsp|.klvm|.clib)"
- id: trailing-whitespace
- id: check-merge-conflict
- id: check-ast
- id: debug-statements
- repo: local
hooks:
- id: klvm_hex
name: .clsp.hex files
entry: ./activated.py python tools/manage_klvm.py check
language: system
pass_filenames: false
- repo: local
hooks:
- id: chiklispp
name: Pretty print chiklisp files
entry: ./activated.py python tools/chiklispp.py .
language: system
pass_filenames: false
- repo: local
hooks:
- id: build mypy.ini
name: build mypy.ini
entry: ./activated.py python manage-mypy.py build-mypy-ini
language: system
pass_filenames: false
- repo: local
hooks:
- id: mypy
name: mypy
entry: ./activated.py mypy
language: system
pass_filenames: false
- repo: local
hooks:
- id: isort
name: isort
entry: ./activated.py isort
language: system
types: [python]
- repo: local
hooks:
- id: flake8
name: Flake8
entry: ./activated.py flake8
language: system
types: [python]