File tree 2 files changed +41
-0
lines changed
2 files changed +41
-0
lines changed Original file line number Diff line number Diff line change 14
14
- repo : https://github.com/pre-commit/pre-commit-hooks
15
15
rev : " v4.5.0"
16
16
hooks :
17
+ # Generic checks
17
18
- id : check-case-conflict
18
19
- id : check-symlinks
19
20
- id : debug-statements
25
26
args : [--fix=lf]
26
27
- id : trailing-whitespace
27
28
args : [--markdown-linebreak-ext=md]
29
+
30
+ # JSON formatting
28
31
- id : pretty-format-json
29
32
stages : [manual]
30
33
args : [--autofix]
@@ -35,40 +38,67 @@ repos:
35
38
package\.json$|
36
39
^package\/.*$
37
40
)
41
+
38
42
- repo : https://github.com/codespell-project/codespell
39
43
rev : " v2.3.0"
40
44
hooks :
45
+ # Spell checking
41
46
- id : codespell
42
47
exclude : ^.*\.(svd|SVD)$
48
+
43
49
- repo : https://github.com/pre-commit/mirrors-clang-format
44
50
rev : " v18.1.3"
45
51
hooks :
52
+ # C/C++ formatting
46
53
- id : clang-format
47
54
types_or : [c, c++]
48
55
exclude : ^.*\/build_opt\.h$
56
+
49
57
- repo : https://github.com/psf/black-pre-commit-mirror
50
58
rev : " 22.10.0"
51
59
hooks :
60
+ # Python formatting
52
61
- id : black
53
62
types_or : [python]
54
63
args : [--line-length=120] # From the arduino code style. Add as argument rather than creating a new config file.
64
+
55
65
- repo : https://github.com/PyCQA/flake8
56
66
rev : " 7.0.0"
57
67
hooks :
68
+ # Python linting
58
69
- id : flake8
59
70
types_or : [python]
60
71
additional_dependencies :
61
72
- flake8-bugbear
62
73
- flake8-comprehensions
63
74
- flake8-simplify
75
+
64
76
- repo : https://github.com/pre-commit/mirrors-prettier
65
77
rev : " v3.1.0"
66
78
hooks :
79
+ # YAML formatting
67
80
- id : prettier
68
81
types_or : [yaml]
82
+
83
+ - repo : https://github.com/shellcheck-py/shellcheck-py
84
+ rev : " v0.10.0.1"
85
+ hooks :
86
+ # Bash linting
87
+ - id : shellcheck
88
+ types : [shell]
89
+
90
+ - repo : https://github.com/openstack/bashate
91
+ rev : " 2.1.1"
92
+ hooks :
93
+ # Bash formatting
94
+ - id : bashate
95
+ types : [shell]
96
+ args : ["-i", "E006"] # Ignore E006: Line too long
97
+
69
98
- repo : https://github.com/errata-ai/vale
70
99
rev : " v3.0.7"
71
100
hooks :
101
+ # Sync vale styles and lint markdown and reStructuredText
72
102
- id : vale
73
103
name : vale-sync
74
104
language_version : " 1.21.6"
Original file line number Diff line number Diff line change
1
+ # Shellcheck configuration file for ESP32 Arduino core
2
+
3
+ # Optional checks. https://github.com/koalaman/shellcheck/wiki/optional
4
+ enable =add-default-case ,deprecate-which ,avoid-nullary-conditions
5
+
6
+ # Enable search for external sources
7
+ external-sources =true
8
+
9
+ # Search folder for sourced files.
10
+ # Set to the folder where the original script is located.
11
+ source-path =SCRIPTDIR
You can’t perform that action at this time.
0 commit comments