mirror of
https://github.com/apache/arrow.git
synced 2026-10-29 00:56:31 +08:00
Add pre-commit check for RAT
This commit is contained in:
1 parent
671d244665
commit
185cba8fb4
4 files changed
+15
-2
No files matched your search
@@ -15,6 +15,9 @@
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
apache-rat-0.12.jar
|
||||
arrow-src.tar
|
||||
|
||||
# Compiled source
|
||||
*.a
|
||||
*.dll
|
||||
|
||||
@@ -21,6 +21,14 @@
|
||||
# To run all hooks on all files use `pre-commit run -a`
|
||||
|
||||
repos:
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: rat
|
||||
name: rat
|
||||
language: system
|
||||
entry: bash -c "git archive HEAD --prefix=apache-arrow/ --output=arrow-src.tar && ./dev/release/run-rat.sh arrow-src.tar"
|
||||
always_run: true
|
||||
pass_filenames: false
|
||||
- repo: git://github.com/pre-commit/pre-commit-hooks
|
||||
sha: v1.2.3
|
||||
hooks:
|
||||
|
||||
@@ -114,6 +114,7 @@ dev/tasks/linux-packages/debian/plasma-store-server.install
|
||||
dev/tasks/linux-packages/debian/rules
|
||||
dev/tasks/linux-packages/debian/source/format
|
||||
dev/tasks/linux-packages/debian/watch
|
||||
doc/requirements.txt
|
||||
go/arrow/go.sum
|
||||
go/arrow/Gopkg.lock
|
||||
go/arrow/internal/cpu/*
|
||||
@@ -124,7 +125,6 @@ js/.npmignore
|
||||
js/closure-compiler-scripts/*
|
||||
python/cmake_modules
|
||||
python/cmake_modules/*
|
||||
python/doc/requirements.txt
|
||||
python/MANIFEST.in
|
||||
python/pyarrow/includes/__init__.pxd
|
||||
python/pyarrow/tests/__init__.py
|
||||
|
||||
@@ -19,7 +19,9 @@
|
||||
#
|
||||
|
||||
# download apache rat
|
||||
curl -s https://repo1.maven.org/maven2/org/apache/rat/apache-rat/0.12/apache-rat-0.12.jar > apache-rat-0.12.jar
|
||||
if [ ! -f apache-rat-0.12.jar ]; then
|
||||
curl -s https://repo1.maven.org/maven2/org/apache/rat/apache-rat/0.12/apache-rat-0.12.jar > apache-rat-0.12.jar
|
||||
fi
|
||||
|
||||
RAT="java -jar apache-rat-0.12.jar -x "
|
||||
|
||||
|
||||
Reference in new issue
Block a user