Skip to content

Commit f18d888

Browse files
committed
Clean up the pre-commit config
Removal of unneeded files / file types Clean up the repo root folder by moving `codespell.txt`
1 parent 4da5d02 commit f18d888

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

.pre-commit-config.yaml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ repos:
2626
- id: end-of-file-fixer
2727
- id: file-contents-sorter
2828
args: [--unique]
29-
files: ^codespell\.txt$
29+
files: ^\.github/linters/codespell\.txt$
3030
- id: fix-byte-order-marker
3131
- id: forbid-submodules
3232
- id: mixed-line-ending
@@ -35,17 +35,18 @@ repos:
3535
rev: v1.5.5
3636
hooks:
3737
- id: forbid-tabs
38-
exclude: Makefile$|Makefile\..+$|makefile$|\.mk$
38+
exclude: Makefile$
3939
- id: remove-tabs
4040
args: [--whitespaces-count, "2"]
41-
exclude: Makefile$|Makefile\..+$|makefile$|\.mk$
41+
exclude: Makefile$
4242
- repo: https://github.com/codespell-project/codespell
4343
rev: v2.2.6
4444
hooks:
4545
- id: codespell
4646
name: Run codespell
4747
description: Check spelling with codespell
48-
entry: codespell --ignore-words=codespell.txt
48+
entry: codespell
49+
args: [--ignore-words=.github/linters/codespell.txt]
4950
- repo: https://github.com/jumanjihouse/pre-commit-hooks
5051
rev: 3.0.0
5152
hooks:
@@ -65,7 +66,7 @@ repos:
6566
description: Checks the style of Markdown files
6667
args: [--config=.github/linters/.markdown-lint.yml]
6768
types: [markdown]
68-
files: \.(md|mdown|markdown)$
69+
files: \.md$
6970
- repo: https://github.com/tcort/markdown-link-check
7071
rev: v3.11.2
7172
hooks:
@@ -74,7 +75,7 @@ repos:
7475
description: Checks hyperlinks in Markdown files
7576
args: [--config=.github/linters/mlc_config.json, -q]
7677
types: [markdown]
77-
files: \.(md|mdown|markdown)$
78+
files: \.md$
7879
- repo: https://github.com/adrienverge/yamllint
7980
rev: v1.35.1
8081
hooks:
@@ -83,4 +84,4 @@ repos:
8384
description: Check YAML files with yamllint
8485
args: [--strict, -c=.github/linters/.yaml-lint.yml]
8586
types: [yaml]
86-
files: \.(yaml|yml)$
87+
files: \.ya?ml$

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ can use the `-f` flag:
120120
## Spell Checking
121121

122122
We are using `pre-commit` to run [codespell](https://github.com/codespell-project/codespell)
123-
to check code for common misspellings. We have a small custom dictionary file [codespell.txt](codespell.txt).
123+
to check code for common misspellings. We have a small custom dictionary file [codespell.txt](.github/linters/codespell.txt).
124124

125125
## Coding conventions
126126

0 commit comments

Comments
 (0)