From 7963f1e0cf4c11825e26661fbcde0cf80200e613 Mon Sep 17 00:00:00 2001 From: James Lamb Date: Fri, 14 Jun 2024 14:46:06 -0500 Subject: [PATCH] resolve file_key deprecation warning from rapids-dependency-file-generator (#198) Contributes to https://github.com/rapidsai/dependency-file-generator/issues/89 Resolves this warning I see in build and test CI jobs, coming from `rapids-dependency-file-generator`. > /opt/conda/lib/python3.9/site-packages/rapids_dependency_file_generator/cli.py:98: UserWarning: The use of --file_key is deprecated. Use -f or --file-key instead. --- .pre-commit-config.yaml | 2 +- ci/check_style.sh | 2 +- ci/test_python.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 469e3f1..b37a358 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,7 +15,7 @@ repos: args: ['--config=.flake8'] files: jupyterlab_nvdashboard/.*$ - repo: https://github.com/rapidsai/dependency-file-generator - rev: v1.7.1 + rev: v1.13.11 hooks: - id: rapids-dependency-file-generator args: ['--clean'] diff --git a/ci/check_style.sh b/ci/check_style.sh index 32900f6..4ad78d9 100755 --- a/ci/check_style.sh +++ b/ci/check_style.sh @@ -8,7 +8,7 @@ rapids-logger "Create checks conda environment" rapids-dependency-file-generator \ --output conda \ - --file_key checks \ + --file-key checks \ --matrix "cuda=${RAPIDS_CUDA_VERSION%.*};arch=$(arch);py=${RAPIDS_PY_VERSION}" | tee env.yaml rapids-mamba-retry env create --yes -f env.yaml -n checks diff --git a/ci/test_python.sh b/ci/test_python.sh index 92f9a7d..a7ac3b8 100755 --- a/ci/test_python.sh +++ b/ci/test_python.sh @@ -8,7 +8,7 @@ set -euo pipefail rapids-logger "Generate Python testing dependencies" rapids-dependency-file-generator \ --output conda \ - --file_key test_python \ + --file-key test_python \ --matrix "cuda=${RAPIDS_CUDA_VERSION%.*};arch=$(arch);py=${RAPIDS_PY_VERSION}" | tee env.yaml rapids-mamba-retry env create --yes -f env.yaml -n test