-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.pre-commit-config.yaml
95 lines (88 loc) · 2.77 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
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
90
91
92
93
94
95
repos:
# AlgoKit
- repo: local
hooks:
- id: black
name: black
description: "Black: The uncompromising Python code formatter"
entry: poetry run black
language: system
minimum_pre_commit_version: 2.9.2
require_serial: true
types_or: [ python, pyi ]
- id: ruff
name: ruff
description: "Run 'ruff' for extremely fast Python linting"
entry: poetry run ruff
language: system
minimum_pre_commit_version: '0'
require_serial: false
types: [ python ]
args: [ "check", "--fix" ]
additional_dependencies: [ ]
files: '^(smart_contracts|tests)/'
- id: mypy
name: mypy
description: '`mypy` will check Python types for correctness'
entry: poetry run mypy
language: system
minimum_pre_commit_version: 2.9.2
require_serial: true
types_or: [ python, pyi ]
additional_dependencies: [ ]
files: '^(smart_contracts|tests)/'
# # Uncomment to enable TEAL static analysis using Tealer package
# - id: tealer
# name: tealer
# description: "Run AlgoKit `Tealer` for TEAL static analysis"
# entry: algokit
# language: system
# args: [project, run, "audit-teal"]
# require_serial: false
# additional_dependencies: []
# minimum_pre_commit_version: "0"
# files: '^.*\.teal$'
# Docs
- repo: local
hooks:
- id: mdbook-build
name: mdbook build
description: "Builds mdBook."
entry: mdbook build
language: rust
minimum_pre_commit_version: 3.2.0
additional_dependencies: [ ]
pass_filenames: false
- id: mdbook-test
name: mdbook test
description: "Checks mdBook pass tests."
entry: mdbook test
language: rust
minimum_pre_commit_version: 3.2.0
types: [ markdown ]
additional_dependencies: [ ]
pass_filenames: false
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.43.0
hooks:
- id: markdownlint
name: markdownlint
description: "Checks the style of Markdown/Commonmark files."
entry: markdownlint
language: node
minimum_pre_commit_version: 0.15.0
types: [ markdown ]
additional_dependencies: [ ]
files: '^(docs)/'
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
name: trim trailing whitespace
description: "Trims trailing whitespace."
entry: trailing-whitespace-fixer
language: python
minimum_pre_commit_version: 3.2.0
types: [ markdown ]
additional_dependencies: [ ]
files: '^(docs)/'