You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by li...@apache.org on 2025/06/21 12:21:24 UTC

(arrow-adbc) branch main updated: chore: add codespell (#2864)

This is an automated email from the ASF dual-hosted git repository.

lidavidm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-adbc.git


The following commit(s) were added to refs/heads/main by this push:
     new 7190e0b49 chore: add codespell (#2864)
7190e0b49 is described below

commit 7190e0b494ccd09868ec85404c2997c3e55462e0
Author: Daijiro Fukuda <fu...@clear-code.com>
AuthorDate: Sat Jun 21 21:21:19 2025 +0900

    chore: add codespell (#2864)
    
    Closes #2863
---
 .codespell-ignore                 | 13 +++++++++++++
 .codespellrc                      | 20 ++++++++++++++++++++
 .pre-commit-config.yaml           |  4 ++++
 CONTRIBUTING.md                   | 34 +++++++++++++++++++++++-----------
 dev/release/rat_exclude_files.txt |  1 +
 5 files changed, 61 insertions(+), 11 deletions(-)

diff --git a/.codespell-ignore b/.codespell-ignore
new file mode 100644
index 000000000..b7c9e00a1
--- /dev/null
+++ b/.codespell-ignore
@@ -0,0 +1,13 @@
+afterall
+checkin
+collet
+copys
+errorprone
+flate
+fpr
+ges
+gir
+hastables
+re-use
+te
+thirdparty
diff --git a/.codespellrc b/.codespellrc
new file mode 100644
index 000000000..d472d52a5
--- /dev/null
+++ b/.codespellrc
@@ -0,0 +1,20 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+[codespell]
+ignore-words = .codespell-ignore
+skip = go/adbc/go.sum
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 19ceb9045..3e3b59dd9 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -131,5 +131,9 @@ repos:
     - id: fmt
       name: rustfmt
       args: ["--all", "--manifest-path", "rust/Cargo.toml", "--"]
+  - repo: https://github.com/codespell-project/codespell
+    rev: 63c8f8312b7559622c0d82815639671ae42132ac  # v2.4.1
+    hooks:
+    - id: codespell
 
 exclude: "^c/vendor/.*"
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 9b1bb1d6f..9655c19b4 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -437,17 +437,29 @@ $ mamba install --file ci/conda_env_dev.txt
 $ pre-commit install
 # Run manually
 $ pre-commit run
-Check Xml............................................(no files to check)Skipped
-Check Yaml...........................................(no files to check)Skipped
-Fix End of Files.....................................(no files to check)Skipped
-Trim Trailing Whitespace.............................(no files to check)Skipped
-clang-format.........................................(no files to check)Skipped
-cmake-format.........................................(no files to check)Skipped
-cpplint..............................................(no files to check)Skipped
-Google Java Formatter................................(no files to check)Skipped
-black................................................(no files to check)Skipped
-flake8...............................................(no files to check)Skipped
-isort................................................(no files to check)Skipped
+check xml.................................................................(no files to check)Skipped
+check yaml................................................................(no files to check)Skipped
+fix end of files..........................................................(no files to check)Skipped
+Mixed line endings (LF)...................................................(no files to check)Skipped
+Mixed line endings (CRLF).................................................(no files to check)Skipped
+trim trailing whitespace..................................................(no files to check)Skipped
+clang-format..............................................................(no files to check)Skipped
+cmake-format..............................................................(no files to check)Skipped
+cpplint...................................................................(no files to check)Skipped
+golangci-lint.............................................................(no files to check)Skipped
+Go Formatter..............................................................(no files to check)Skipped
+Google (or Palantir) Java Formatter.......................................(no files to check)Skipped
+black.....................................................................(no files to check)Skipped
+flake8....................................................................(no files to check)Skipped
+isort.....................................................................(no files to check)Skipped
+cython-lint...............................................................(no files to check)Skipped
+Vala-Lint.................................................................(no files to check)Skipped
+meson.....................................................................(no files to check)Skipped
+Check for unapproved licenses.............................................(no files to check)Skipped
+Ensure CGO adbc.h is syncd................................................(no files to check)Skipped
+Ensure GitHub Actions and pre-commit hooks are pinned to a specific SHA...(no files to check)Skipped
+rustfmt...................................................................(no files to check)Skipped
+codespell.................................................................(no files to check)Skipped
 # Hooks automatically run on commit
 $ git commit
 ```
diff --git a/dev/release/rat_exclude_files.txt b/dev/release/rat_exclude_files.txt
index 54ec74835..38c39a5e7 100644
--- a/dev/release/rat_exclude_files.txt
+++ b/dev/release/rat_exclude_files.txt
@@ -1,6 +1,7 @@
 *.json
 *.Rproj
 *.Rd
+.codespell-ignore
 c/subprojects/fmt.wrap
 c/subprojects/gtest.wrap
 c/subprojects/nanoarrow.wrap