Skip to content

Commit 7190e0b

Browse files
authored
chore: add codespell (#2864)
Closes #2863
1 parent 46ec7c3 commit 7190e0b

File tree

5 files changed

+61
-11
lines changed

5 files changed

+61
-11
lines changed

.codespell-ignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
afterall
2+
checkin
3+
collet
4+
copys
5+
errorprone
6+
flate
7+
fpr
8+
ges
9+
gir
10+
hastables
11+
re-use
12+
te
13+
thirdparty

.codespellrc

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
18+
[codespell]
19+
ignore-words = .codespell-ignore
20+
skip = go/adbc/go.sum

.pre-commit-config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,5 +131,9 @@ repos:
131131
- id: fmt
132132
name: rustfmt
133133
args: ["--all", "--manifest-path", "rust/Cargo.toml", "--"]
134+
- repo: https://github.com/codespell-project/codespell
135+
rev: 63c8f8312b7559622c0d82815639671ae42132ac # v2.4.1
136+
hooks:
137+
- id: codespell
134138

135139
exclude: "^c/vendor/.*"

CONTRIBUTING.md

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -437,17 +437,29 @@ $ mamba install --file ci/conda_env_dev.txt
437437
$ pre-commit install
438438
# Run manually
439439
$ pre-commit run
440-
Check Xml............................................(no files to check)Skipped
441-
Check Yaml...........................................(no files to check)Skipped
442-
Fix End of Files.....................................(no files to check)Skipped
443-
Trim Trailing Whitespace.............................(no files to check)Skipped
444-
clang-format.........................................(no files to check)Skipped
445-
cmake-format.........................................(no files to check)Skipped
446-
cpplint..............................................(no files to check)Skipped
447-
Google Java Formatter................................(no files to check)Skipped
448-
black................................................(no files to check)Skipped
449-
flake8...............................................(no files to check)Skipped
450-
isort................................................(no files to check)Skipped
440+
check xml.................................................................(no files to check)Skipped
441+
check yaml................................................................(no files to check)Skipped
442+
fix end of files..........................................................(no files to check)Skipped
443+
Mixed line endings (LF)...................................................(no files to check)Skipped
444+
Mixed line endings (CRLF).................................................(no files to check)Skipped
445+
trim trailing whitespace..................................................(no files to check)Skipped
446+
clang-format..............................................................(no files to check)Skipped
447+
cmake-format..............................................................(no files to check)Skipped
448+
cpplint...................................................................(no files to check)Skipped
449+
golangci-lint.............................................................(no files to check)Skipped
450+
Go Formatter..............................................................(no files to check)Skipped
451+
Google (or Palantir) Java Formatter.......................................(no files to check)Skipped
452+
black.....................................................................(no files to check)Skipped
453+
flake8....................................................................(no files to check)Skipped
454+
isort.....................................................................(no files to check)Skipped
455+
cython-lint...............................................................(no files to check)Skipped
456+
Vala-Lint.................................................................(no files to check)Skipped
457+
meson.....................................................................(no files to check)Skipped
458+
Check for unapproved licenses.............................................(no files to check)Skipped
459+
Ensure CGO adbc.h is syncd................................................(no files to check)Skipped
460+
Ensure GitHub Actions and pre-commit hooks are pinned to a specific SHA...(no files to check)Skipped
461+
rustfmt...................................................................(no files to check)Skipped
462+
codespell.................................................................(no files to check)Skipped
451463
# Hooks automatically run on commit
452464
$ git commit
453465
```

dev/release/rat_exclude_files.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
*.json
22
*.Rproj
33
*.Rd
4+
.codespell-ignore
45
c/subprojects/fmt.wrap
56
c/subprojects/gtest.wrap
67
c/subprojects/nanoarrow.wrap

0 commit comments

Comments
 (0)