Add codespell config file .codespellrc

Add `.codespellrc` to the GitHub labeler

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
This commit is contained in:
John Bampton
2025-05-03 04:21:54 +10:00
parent 3d2f848e64
commit f515669ce3
3 changed files with 4 additions and 1 deletions
+3
View File
@@ -0,0 +1,3 @@
[codespell]
ignore-words = .github/linters/codespell.txt
skip = ./build,./doc/api,./doc/capi
+1
View File
@@ -19,6 +19,7 @@ build:
- lib/**/*
- minirake
- tasks/**/*
- .codespellrc
- .dockerignore
- .pre-commit-config.yaml
- .prettierignore
-1
View File
@@ -90,7 +90,6 @@ repos:
- id: codespell
name: run codespell
description: check spelling with codespell
args: [--ignore-words=.github/linters/codespell.txt]
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 3.0.0
hooks: