File tree Expand file tree Collapse file tree 2 files changed +41
-0
lines changed Expand file tree Collapse file tree 2 files changed +41
-0
lines changed Original file line number Diff line number Diff line change 1414 - repo : https://github.com/pre-commit/pre-commit-hooks
1515 rev : " v4.5.0"
1616 hooks :
17+ # Generic checks
1718 - id : check-case-conflict
1819 - id : check-symlinks
1920 - id : debug-statements
2526 args : [--fix=lf]
2627 - id : trailing-whitespace
2728 args : [--markdown-linebreak-ext=md]
29+
30+ # JSON formatting
2831 - id : pretty-format-json
2932 stages : [manual]
3033 args : [--autofix]
@@ -35,40 +38,67 @@ repos:
3538 package\.json$|
3639 ^package\/.*$
3740 )
41+
3842 - repo : https://github.com/codespell-project/codespell
3943 rev : " v2.3.0"
4044 hooks :
45+ # Spell checking
4146 - id : codespell
4247 exclude : ^.*\.(svd|SVD)$
48+
4349 - repo : https://github.com/pre-commit/mirrors-clang-format
4450 rev : " v18.1.3"
4551 hooks :
52+ # C/C++ formatting
4653 - id : clang-format
4754 types_or : [c, c++]
4855 exclude : ^.*\/build_opt\.h$
56+
4957 - repo : https://github.com/psf/black-pre-commit-mirror
5058 rev : " 22.10.0"
5159 hooks :
60+ # Python formatting
5261 - id : black
5362 types_or : [python]
5463 args : [--line-length=120] # From the arduino code style. Add as argument rather than creating a new config file.
64+
5565 - repo : https://github.com/PyCQA/flake8
5666 rev : " 7.0.0"
5767 hooks :
68+ # Python linting
5869 - id : flake8
5970 types_or : [python]
6071 additional_dependencies :
6172 - flake8-bugbear
6273 - flake8-comprehensions
6374 - flake8-simplify
75+
6476 - repo : https://github.com/pre-commit/mirrors-prettier
6577 rev : " v3.1.0"
6678 hooks :
79+ # YAML formatting
6780 - id : prettier
6881 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+
6998 - repo : https://github.com/errata-ai/vale
7099 rev : " v3.0.7"
71100 hooks :
101+ # Sync vale styles and lint markdown and reStructuredText
72102 - id : vale
73103 name : vale-sync
74104 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