Skip to content

Commit a9edfff

Browse files
authored
pre-commit: upgrade codespell; fix spelling; exclude directories (#1248)
After running `pre-commit autoupdate` the codespell hook was updated to the latest version The new version of codespell found more spelling mistakes. Which lead me to exclude some "language" files from the English spelling checking One typo was fixed https://pre-commit.com/#pre-commit-autoupdate
1 parent 6135a3c commit a9edfff

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ repos:
3232
name: run check hooks apply
3333
description: check that all the hooks apply to the repository
3434
- repo: https://github.com/codespell-project/codespell
35-
rev: v2.4.1
35+
rev: v2.4.2
3636
hooks:
3737
- id: codespell
3838
name: run codespell
3939
description: check spelling with codespell
40-
exclude: ^.*Lucene\.Net\.Tests.*$
40+
exclude: ^src/Lucene\.Net\.Analysis\.Common/Analysis/../.*\.rslp$|^.*Lucene\.Net\.Tests.*$
4141
args: [--ignore-words=.github/linters/codespell.txt]
4242
- repo: https://github.com/oxipng/oxipng
4343
rev: v10.1.0

src/Lucene.Net/Search/SearcherLifetimeManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ public bool DoPrune(double ageSec, IndexSearcher searcher)
265265
/// entries are passed to the <see cref="IPruner"/> in sorted (newest to
266266
/// oldest <see cref="IndexSearcher"/>) order.
267267
///
268-
/// <para/><b>NOTE</b>: you must peridiocally call this, ideally
268+
/// <para/><b>NOTE</b>: you must periodically call this, ideally
269269
/// from the same background thread that opens new
270270
/// searchers.
271271
/// </summary>

0 commit comments

Comments
 (0)