Skip to content

Commit 9f83a16

Browse files
committed
Fix format and add codespell config
1 parent 2794074 commit 9f83a16

File tree

2 files changed

+48
-33
lines changed

2 files changed

+48
-33
lines changed

Diff for: .pre-commit-config.yaml

+39-33
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,40 @@
11
repos:
2-
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.5.0
4-
hooks:
5-
- id: check-case-conflict
6-
- id: check-symlinks
7-
- id: check-yaml
8-
- id: debug-statements
9-
- id: destroyed-symlinks
10-
- id: detect-private-key
11-
- id: end-of-file-fixer
12-
- id: mixed-line-ending
13-
args: [--fix=lf]
14-
- id: trailing-whitespace
15-
args: [--markdown-linebreak-ext=md]
16-
- repo: https://github.com/pre-commit/mirrors-clang-format
17-
rev: 'v15.0.7'
18-
hooks:
19-
- id: clang-format
20-
files: \.((((c|C)(c|pp|xx|\+\+)?$)|((h|H)h?(pp|xx|\+\+)?$))|(ino))$
21-
- repo: https://github.com/psf/black-pre-commit-mirror
22-
rev: 22.10.0
23-
hooks:
24-
- id: black
25-
language_version: python3.8
26-
- repo: https://github.com/PyCQA/flake8
27-
rev: 7.0.0
28-
hooks:
29-
- id: flake8
30-
files: \.(((py)(w|o)?$))$
31-
additional_dependencies:
32-
- flake8-bugbear
33-
- flake8-comprehensions
34-
- flake8-simplify
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v4.5.0
4+
hooks:
5+
- id: check-case-conflict
6+
- id: check-symlinks
7+
- id: check-yaml
8+
- id: debug-statements
9+
- id: destroyed-symlinks
10+
- id: detect-private-key
11+
- id: end-of-file-fixer
12+
- id: mixed-line-ending
13+
args: [--fix=lf]
14+
- id: trailing-whitespace
15+
args: [--markdown-linebreak-ext=md]
16+
- repo: https://github.com/pre-commit/mirrors-clang-format
17+
rev: 'v15.0.7'
18+
hooks:
19+
- id: clang-format
20+
files: \.((((c|C)(c|pp|xx|\+\+)?$)|((h|H)h?(pp|xx|\+\+)?$))|(ino))$
21+
- repo: https://github.com/codespell-project/codespell
22+
rev: v2.2.4
23+
hooks:
24+
- id: codespell
25+
additional_dependencies:
26+
- tomli
27+
- repo: https://github.com/psf/black-pre-commit-mirror
28+
rev: 22.10.0
29+
hooks:
30+
- id: black
31+
language_version: python3.8
32+
- repo: https://github.com/PyCQA/flake8
33+
rev: 7.0.0
34+
hooks:
35+
- id: flake8
36+
files: \.(((py)(w|o)?$))$
37+
additional_dependencies:
38+
- flake8-bugbear
39+
- flake8-comprehensions
40+
- flake8-simplify

Diff for: pyproject.toml

+9
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,11 @@
11
[tool.black]
22
line-length = 120
3+
4+
[tool.codespell]
5+
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/spell-check/.codespellrc
6+
# In the event of a false positive, add the problematic word, in all lowercase, to a comma-separated list here:
7+
ignore-words-list = 'ba,licence,ot'
8+
skip = './.git,./.licenses,__pycache__,./.clang-format,./.editorconfig,./.flake8,./pyproject.toml'
9+
builtin = 'clear,informal,en-GB_to_en-US'
10+
check-filenames = ''
11+
check-hidden = ''

0 commit comments

Comments
 (0)