Add configuration for running `codespell` locally (#2151)

Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
This commit is contained in:
Dimitri Papadopoulos Orfanos 2022-01-25 00:40:15 +01:00 committed by GitHub
parent 3eeb003bff
commit e5de01abae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 45 additions and 3 deletions

View File

@ -0,0 +1,9 @@
of scoped seem allright. I still think there is not enough need
da de dum, hmm, hmm, dum de dum.
output=`dmesg | grep hda`
p2 = Popen(["grep", "hda"], stdin=p1.stdout, stdout=PIPE)
Error-de_DE=Wenn ist das Nunstück git und Slotermeyer?
Ja! Beiherhund das Oder die Virtualenvironment gersput!

View File

@ -0,0 +1,17 @@
adaptee
ans
arithmetics
asend
ba
clos
complies
crate
extraversion
fo
iif
nd
ned
recuse
reenable
therefor
warmup

5
.codespellrc Normal file
View File

@ -0,0 +1,5 @@
[codespell]
skip = ./.git
ignore-words = .codespell/ignore-words.txt
exclude-file = .codespell/exclude-file.txt
uri-ignore-words-list = daa,ist,searchin,theses

View File

@ -2,9 +2,9 @@ repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
hooks:
- id: mixed-line-ending
name: Normalize mixed line endings
args: [--fix=lf]
- id: mixed-line-ending
name: Normalize mixed line endings
args: [--fix=lf]
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.8.0
@ -17,6 +17,13 @@ repos:
files: '^pep-\d+\.txt|\.rst$'
types: [text]
- repo: https://github.com/codespell-project/codespell
rev: v2.1.0
hooks:
- id: codespell
name: Check for common misspellings in text files
stages: [manual]
- repo: local
hooks:
- id: check-required-fields

View File

@ -55,6 +55,10 @@ lint:
pre-commit --version > /dev/null || python3 -m pip install pre-commit
pre-commit run --all-files
spellcheck:
pre-commit --version > /dev/null || python3 -m pip install pre-commit
pre-commit run --all-files --hook-stage manual codespell
# New Sphinx targets:
SPHINX_JOBS=8