Skip to content

Commit 4489a6d

Browse files
committed
Merge branch 'feature/add_codespell_check' into 'master'
feat: Add codespell check See merge request application/esp-at!1938
2 parents c8eedcf + 886ce11 commit 4489a6d

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

.codespellrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[codespell]
2+
skip = build,*.drawio,*.svg,*.pdf
3+
ignore-words-list = laf,OT,QUITT
4+
write-changes = true

.pre-commit-config.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,10 @@ repos:
7474
- id: astyle_py
7575
# If you are modifying astyle version, update tools/format.sh as well
7676
args: ['--astyle-version=3.4.7', '--rules=tools/ci/astyle-rules.yml']
77+
- repo: https://github.com/codespell-project/codespell
78+
rev: v2.4.1
79+
hooks:
80+
- id: codespell
81+
# This hook will automatically fix typos as "write-changes" is set to "true" in the .codespellrc configuration file. You can check the modified file and add the changes before committing.
82+
# If you find false positives, you can add the specific terms that should not be flagged to "ignore-words-list" in the .codespellrc
83+
args: [--config=.codespellrc]

docs/en/AT_Command_Set/Basic_AT_Commands.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1016,7 +1016,7 @@ Example
10161016

10171017
::
10181018

1019-
// print no promt info when quitting Wi-Fi passthrough mode
1019+
// print no prompt info when quitting Wi-Fi passthrough mode
10201020
// print detailed connection prompt info
10211021
// print no prompt info when the connection status is changed
10221022
AT+SYSMSG=2

0 commit comments

Comments
 (0)