diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8fa83d57..757d959c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,6 +5,13 @@ repos: - id: astyle_py args: ['--style=otbs', '--attach-namespaces', '--attach-classes', '--indent=spaces=4', '--convert-tabs', '--align-pointer=name', '--align-reference=name', '--keep-one-line-statements', '--pad-header', '--pad-oper'] +- repo: https://github.com/codespell-project/codespell + rev: v2.2.6 + hooks: + - id: codespell + types_or: [c, c++] + args: [-w, "--ignore-words=codespell-ignore-list"] + - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.3.0 hooks: diff --git a/codespell-ignore-list b/codespell-ignore-list new file mode 100644 index 00000000..cf698e61 --- /dev/null +++ b/codespell-ignore-list @@ -0,0 +1,2 @@ +inout +wheight