Add pre-commit check for RAT

This commit is contained in:
Uwe L. Korn committed 2018-12-05 18:28:15 +01:00
1 parent 671d244665
commit 185cba8fb4
4 files changed
+15 -2

No files matched your search

+3
View File
@@ -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
+8
View File
@@ -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:
+1 -1
View File
@@ -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
+3 -1
View File
@@ -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 "