ci(pre-commit): Lock versions to SHA and apply fixes (#11248)

* ci(pre-commit): Execute codespell after formatting changes

* ci(pre-commit): Lock versions to hash

* fix(pre-commit): Apply pre-commit fixes
This commit is contained in:
Lucas Saavedra Vaz 2025-04-22 03:16:32 -03:00 committed by GitHub
parent f1223663dd
commit e0d4d176ea
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 19 additions and 19 deletions

View file

@ -1,7 +1,7 @@
[codespell] [codespell]
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/spell-check/.codespellrc # Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/spell-check/.codespellrc
# In the event of a false positive, add the problematic word, in all lowercase, to a comma-separated list here: # In the event of a false positive, add the problematic word, in all lowercase, to a comma-separated list here:
ignore-words-list = ba,licence,ot,dout,als,exten ignore-words-list = ba,licence,ot,dout,als,exten,emac
skip = ./.git,./.licenses,__pycache__,.clang-format,.codespellrc,.editorconfig,.flake8,.prettierignore,.yamllint.yml,.gitignore,boards.txt,platform.txt,programmers.txt skip = ./.git,./.licenses,__pycache__,.clang-format,.codespellrc,.editorconfig,.flake8,.prettierignore,.yamllint.yml,.gitignore,boards.txt,platform.txt,programmers.txt
builtin = clear,informal,en-GB_to_en-US builtin = clear,informal,en-GB_to_en-US
check-filenames = check-filenames =

View file

@ -12,7 +12,7 @@ default_language_version:
repos: repos:
- repo: https://github.com/pre-commit/pre-commit-hooks - repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v5.0.0" rev: "cef0300fd0fc4d2a87a85fa2093c6b283ea36f4b" # v5.0.0
hooks: hooks:
# Generic checks # Generic checks
- id: check-case-conflict - id: check-case-conflict
@ -39,15 +39,8 @@ repos:
^package\/.*$ ^package\/.*$
) )
- repo: https://github.com/codespell-project/codespell
rev: "v2.3.0"
hooks:
# Spell checking
- id: codespell
exclude: ^.*\.(svd|SVD)$
- repo: https://github.com/pre-commit/mirrors-clang-format - repo: https://github.com/pre-commit/mirrors-clang-format
rev: "v18.1.3" rev: "f6446549e5e97ec9665b9b03e75b87b445857f9a" # v18.1.3
hooks: hooks:
# C/C++ formatting # C/C++ formatting
- id: clang-format - id: clang-format
@ -55,7 +48,7 @@ repos:
exclude: ^.*\/build_opt\.h$ exclude: ^.*\/build_opt\.h$
- repo: https://github.com/psf/black-pre-commit-mirror - repo: https://github.com/psf/black-pre-commit-mirror
rev: "24.10.0" rev: "a4920527036bb9a3f3e6055d595849d67d0da066" # 25.1.0
hooks: hooks:
# Python formatting # Python formatting
- id: black - id: black
@ -63,7 +56,7 @@ repos:
args: [--line-length=120] #From the arduino code style. Add as argument rather than creating a new config file. args: [--line-length=120] #From the arduino code style. Add as argument rather than creating a new config file.
- repo: https://github.com/PyCQA/flake8 - repo: https://github.com/PyCQA/flake8
rev: "7.1.1" rev: "16f5f28a384f0781bebb37a08aa45e65b9526c50" # 7.2.0
hooks: hooks:
# Python linting # Python linting
- id: flake8 - id: flake8
@ -74,21 +67,28 @@ repos:
- flake8-simplify - flake8-simplify
- repo: https://github.com/pre-commit/mirrors-prettier - repo: https://github.com/pre-commit/mirrors-prettier
rev: "v3.1.0" rev: "ffb6a759a979008c0e6dff86e39f4745a2d9eac4" # v3.1.0
hooks: hooks:
# YAML formatting # YAML formatting
- id: prettier - id: prettier
types_or: [yaml] types_or: [yaml]
- repo: https://github.com/codespell-project/codespell
rev: "63c8f8312b7559622c0d82815639671ae42132ac" # v2.4.1
hooks:
# Spell checking
- id: codespell
exclude: ^.*\.(svd|SVD)$
- repo: https://github.com/shellcheck-py/shellcheck-py - repo: https://github.com/shellcheck-py/shellcheck-py
rev: "v0.10.0.1" rev: "a23f6b85d0fdd5bb9d564e2579e678033debbdff" # v0.10.0.1
hooks: hooks:
# Bash linting # Bash linting
- id: shellcheck - id: shellcheck
types: [shell] types: [shell]
- repo: https://github.com/openstack/bashate - repo: https://github.com/openstack/bashate
rev: "2.1.1" rev: "fbd7c2534c2701351c603ff700ddf08202430a31" # 2.1.1
hooks: hooks:
# Bash formatting # Bash formatting
- id: bashate - id: bashate
@ -96,15 +96,15 @@ repos:
args: ["-i", "E006"] # Ignore E006: Line too long args: ["-i", "E006"] # Ignore E006: Line too long
- repo: https://github.com/errata-ai/vale - repo: https://github.com/errata-ai/vale
rev: "v3.9.1" rev: "dc4c47923788a413fb5677de6e3370d514aecb78" # v3.11.2
hooks: hooks:
# Sync vale styles and lint markdown and reStructuredText # Sync vale styles and lint markdown and reStructuredText
- id: vale - id: vale
name: vale-sync name: vale-sync
language_version: "1.21.6" language_version: "1.23.2"
pass_filenames: false pass_filenames: false
args: [sync] args: [sync]
types_or: [markdown, rst] types_or: [markdown, rst]
- id: vale - id: vale
language_version: "1.21.6" language_version: "1.23.2"
types_or: [markdown, rst] types_or: [markdown, rst]

View file

@ -5,7 +5,7 @@
only in Keyboard.cpp and the keyboard layout files. Layout files map only in Keyboard.cpp and the keyboard layout files. Layout files map
ASCII character codes to keyboard scan codes (technically, to USB HID ASCII character codes to keyboard scan codes (technically, to USB HID
Usage codes), possibly altered by the SHIFT or ALT_GR modifiers. Usage codes), possibly altered by the SHIFT or ALT_GR modifiers.
Non-ACSII characters (anything outside the 7-bit range NUL..DEL) are Non-ASCII characters (anything outside the 7-bit range NUL..DEL) are
not supported. not supported.
== Creating your own layout == == Creating your own layout ==