Skip to content

Commit e84bf95

Browse files
committed
Add codespell config file .codespellrc
Can now run codespell from the command line standalone and it will use our standard config file. Running codespell with pre-commit will also use this config. Useful when regenerating the ignored words file on the command line. https://github.com/codespell-project/codespell?tab=readme-ov-file#using-a-config-file https://github.com/codespell-project/codespell?tab=readme-ov-file#pre-commit-hook
1 parent 30d1db4 commit e84bf95

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.codespellrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[codespell]
2+
ignore-words = .github/linters/codespell.txt
3+
skip = ./build,./doc/api,./doc/capi

.pre-commit-config.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ repos:
9090
- id: codespell
9191
name: run codespell
9292
description: check spelling with codespell
93-
args: [--ignore-words=.github/linters/codespell.txt]
9493
- repo: https://github.com/jumanjihouse/pre-commit-hooks
9594
rev: 3.0.0
9695
hooks:

0 commit comments

Comments
 (0)