Skip to content

Commit 34ddede

Browse files
authored
Merge pull request #42 from ClausKlein/feature/add-codespell-to-pre-commit
Add codespell to pre-commit
2 parents d76cb5a + 568dcfb commit 34ddede

File tree

3 files changed

+18
-10
lines changed

3 files changed

+18
-10
lines changed

.codespellignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
claus

.pre-commit-config.yaml

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,30 +4,37 @@ repos:
44
- repo: https://github.com/pre-commit/pre-commit-hooks
55
rev: v5.0.0
66
hooks:
7-
- id: trailing-whitespace
8-
- id: end-of-file-fixer
9-
- id: check-yaml
10-
- id: check-added-large-files
7+
- id: trailing-whitespace
8+
- id: end-of-file-fixer
9+
- id: check-yaml
10+
- id: check-added-large-files
1111

1212
# Clang-format for C++
1313
# This brings in a portable version of clang-format.
1414
# See also: https://github.com/ssciwr/clang-format-wheel
1515
- repo: https://github.com/pre-commit/mirrors-clang-format
1616
rev: v18.1.8
1717
hooks:
18-
- id: clang-format
19-
types_or: [c++, c]
18+
- id: clang-format
19+
types_or: [c++, c]
2020

2121
# CMake linting and formatting
2222
- repo: https://github.com/BlankSpruce/gersemi
2323
rev: 0.15.1
2424
hooks:
25-
- id: gersemi
26-
name: CMake linting
25+
- id: gersemi
26+
name: CMake linting
2727

2828
# Markdown linting
2929
# Config file: .markdownlint.yaml
3030
- repo: https://github.com/igorshubovych/markdownlint-cli
3131
rev: v0.42.0
3232
hooks:
33-
- id: markdownlint
33+
- id: markdownlint
34+
35+
- repo: https://github.com/codespell-project/codespell
36+
rev: v2.3.0
37+
hooks:
38+
- id: codespell
39+
files: ^.*\.(cmake|cpp|hpp|txt|md|json|in|yaml|yml)$
40+
args: ["--ignore-words", ".codespellignore" ]

include/beman/inplace_vector/inplace_vector.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ class inplace_vector : public inplace_vector_base<T, Capacity> {
565565
for (; this->size() != Capacity && first != last; ++first) {
566566
emplace_back(*first);
567567
}
568-
return frist;
568+
return first;
569569
}
570570
*/
571571

0 commit comments

Comments
 (0)