Skip to content

Commit 134c91c

Browse files
authored
Use rapids-github-fetch in ci/check_style.sh (#255)
Contributes to rapidsai/build-planning#347 This PR uses `rapids-github-fetch` to download the cmake-format config in `ci/check_style.sh`. It tries an authenticated `gh` request first, which avoids the rate limits applied to unauthenticated downloads from `raw.githubusercontent.com`. Authors: - Bradley Dice (https://github.com/bdice) - Philip Hyunsu Cho (https://github.com/chyunsu3) Approvers: - James Lamb (https://github.com/jameslamb) - Philip Hyunsu Cho (https://github.com/chyunsu3) URL: #255
1 parent d9eb888 commit 134c91c

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎ci/check_style.sh‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION.
2+
# SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
33
# SPDX-License-Identifier: Apache-2.0
44

55
set -euo pipefail
@@ -22,10 +22,9 @@ conda activate checks
2222

2323
RAPIDS_BRANCH="$(cat "$(dirname "$(realpath "${BASH_SOURCE[0]}")")"/../RAPIDS_BRANCH)"
2424

25-
FORMAT_FILE_URL="https://raw.githubusercontent.com/rapidsai/rapids-cmake/${RAPIDS_BRANCH}/cmake-format-rapids-cmake.json"
2625
export RAPIDS_CMAKE_FORMAT_FILE=/tmp/rapids_cmake_ci/cmake-format-rapids-cmake.json
2726
mkdir -p "$(dirname "${RAPIDS_CMAKE_FORMAT_FILE}")"
28-
wget -O ${RAPIDS_CMAKE_FORMAT_FILE} "${FORMAT_FILE_URL}"
27+
rapids-github-fetch rapidsai/rapids-cmake cmake-format-rapids-cmake.json "${RAPIDS_BRANCH}" > "${RAPIDS_CMAKE_FORMAT_FILE}"
2928

3029
# Run pre-commit checks
3130
pre-commit run --all-files --show-diff-on-failure

0 commit comments

Comments
 (0)