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,52 @@ 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
+
69
83
- repo : https://github.com/errata-ai/vale
70
84
rev : " v3.0.7"
71
85
hooks :
86
+ # Sync vale styles and lint markdown and reStructuredText
72
87
- id : vale
73
88
name : vale-sync
74
89
language_version : " 1.21.6"
@@ -78,3 +93,19 @@ repos:
78
93
- id : vale
79
94
language_version : " 1.21.6"
80
95
types_or : [markdown, rst]
96
+
97
+ - repo : https://github.com/shellcheck-py/shellcheck-py
98
+ rev : " v0.10.0.1"
99
+ hooks :
100
+ # Bash linting
101
+ - id : shellcheck
102
+ types : [shell]
103
+ args : ["--severity=warning"]
104
+
105
+ - repo : https://github.com/openstack/bashate
106
+ rev : " 2.1.1"
107
+ hooks :
108
+ # Bash formatting
109
+ - id : bashate
110
+ types : [shell]
111
+ args : ["-i", "E006"] # Ignore E006: Line too long
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
+ source-path =SCRIPTDIR /../..
You can’t perform that action at this time.
0 commit comments