Skip to content

Commit

Permalink
Fix format and add codespell config
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasssvaz committed Jan 23, 2024
1 parent 2794074 commit 9f83a16
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 33 deletions.
72 changes: 39 additions & 33 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,34 +1,40 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-case-conflict
- id: check-symlinks
- id: check-yaml
- id: debug-statements
- id: destroyed-symlinks
- id: detect-private-key
- id: end-of-file-fixer
- id: mixed-line-ending
args: [--fix=lf]
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: 'v15.0.7'
hooks:
- id: clang-format
files: \.((((c|C)(c|pp|xx|\+\+)?$)|((h|H)h?(pp|xx|\+\+)?$))|(ino))$
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 22.10.0
hooks:
- id: black
language_version: python3.8
- repo: https://github.com/PyCQA/flake8
rev: 7.0.0
hooks:
- id: flake8
files: \.(((py)(w|o)?$))$
additional_dependencies:
- flake8-bugbear
- flake8-comprehensions
- flake8-simplify
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-case-conflict
- id: check-symlinks
- id: check-yaml
- id: debug-statements
- id: destroyed-symlinks
- id: detect-private-key
- id: end-of-file-fixer
- id: mixed-line-ending
args: [--fix=lf]
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: 'v15.0.7'
hooks:
- id: clang-format
files: \.((((c|C)(c|pp|xx|\+\+)?$)|((h|H)h?(pp|xx|\+\+)?$))|(ino))$
- repo: https://github.com/codespell-project/codespell
rev: v2.2.4
hooks:
- id: codespell
additional_dependencies:
- tomli
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 22.10.0
hooks:
- id: black
language_version: python3.8
- repo: https://github.com/PyCQA/flake8
rev: 7.0.0
hooks:
- id: flake8
files: \.(((py)(w|o)?$))$
additional_dependencies:
- flake8-bugbear
- flake8-comprehensions
- flake8-simplify
9 changes: 9 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@
[tool.black]
line-length = 120

[tool.codespell]
# 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:
ignore-words-list = 'ba,licence,ot'
skip = './.git,./.licenses,__pycache__,./.clang-format,./.editorconfig,./.flake8,./pyproject.toml'
builtin = 'clear,informal,en-GB_to_en-US'
check-filenames = ''
check-hidden = ''

0 comments on commit 9f83a16

Please sign in to comment.