File tree Expand file tree Collapse file tree 3 files changed +11
-6
lines changed Expand file tree Collapse file tree 3 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,11 @@ repos:
39
39
hooks :
40
40
- id : clang-format
41
41
types_or : [c, c++, cuda]
42
+ - repo : https://github.com/shellcheck-py/shellcheck-py
43
+ rev : v0.10.0.1
44
+ hooks :
45
+ - id : shellcheck
46
+ args : ["--severity=warning"]
42
47
- repo : https://github.com/rapidsai/pre-commit-hooks
43
48
rev : v0.6.0
44
49
hooks :
78
83
^CHANGELOG.md$
79
84
)
80
85
- repo : https://github.com/rapidsai/dependency-file-generator
81
- rev : v1.17 .1
86
+ rev : v1.18 .1
82
87
hooks :
83
88
- id : rapids-dependency-file-generator
84
89
args : ["--clean"]
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ ARGS=$*
16
16
17
17
# NOTE: ensure all dir changes are relative to the location of this
18
18
# script, and that this script resides in the repo dir!
19
- REPODIR=$( cd $( dirname $0 ) ; pwd)
19
+ REPODIR=$( cd " $( dirname " $0 " ) " ; pwd)
20
20
21
21
VALIDARGS=" clean liblegate_dataframe legate_dataframe test -v -g -n -s --ptds -h -e"
22
22
HELP=" $0 [clean] [liblegate_dataframe] [legate_dataframe] [legate] [-v] [-g] [-n] [-s] [--ptds] [--cmake-args=\" <args>\" ] [-h]
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- # Copyright (c) 2021-2024 , NVIDIA CORPORATION.
3
+ # Copyright (c) 2021-2025 , NVIDIA CORPORATION.
4
4
# SPDX-License-Identifier: Apache-2.0
5
5
6
6
# This script is a wrapper for cmakelang that may be used with pre-commit. The
@@ -49,7 +49,7 @@ DEFAULT_FORMAT_FILE_LOCATIONS=(
49
49
)
50
50
51
51
if [ -z ${RAPIDS_CMAKE_FORMAT_FILE: +PLACEHOLDER} ]; then
52
- for file_path in ${DEFAULT_FORMAT_FILE_LOCATIONS[@]} ; do
52
+ for file_path in " ${DEFAULT_FORMAT_FILE_LOCATIONS[@]} " ; do
53
53
if [ -f ${file_path} ]; then
54
54
RAPIDS_CMAKE_FORMAT_FILE=${file_path}
55
55
break
69
69
fi
70
70
71
71
if [[ $1 == " cmake-format" ]]; then
72
- cmake-format -i --config-files cmake/config.json ${RAPIDS_CMAKE_FORMAT_FILE} -- ${@: 2}
72
+ cmake-format -i --config-files cmake/config.json ${RAPIDS_CMAKE_FORMAT_FILE} -- " ${@: 2} "
73
73
elif [[ $1 == " cmake-lint" ]]; then
74
74
# Since the pre-commit hook is verbose, we have to be careful to only
75
75
# present cmake-lint's output (which is quite verbose) if we actually
76
76
# observe a failure.
77
- OUTPUT=$( cmake-lint --config-files cmake/config.json ${RAPIDS_CMAKE_FORMAT_FILE} -- ${@: 2} )
77
+ OUTPUT=$( cmake-lint --config-files cmake/config.json ${RAPIDS_CMAKE_FORMAT_FILE} -- " ${@: 2} " )
78
78
status=$?
79
79
80
80
if ! [ ${status} -eq 0 ]; then
You can’t perform that action at this time.
0 commit comments