Skip to content

Commit

Permalink
Factor out dependencies for verify-alpha-spec (#40)
Browse files Browse the repository at this point in the history
Only verify-alpha-spec depends on rapids-metadata right now, so make it
an optional dependency list to avoid having to pass the RAPIDS nightly
repo for every hook.
  • Loading branch information
KyleFromNVIDIA authored Jun 28, 2024
1 parent 2aac71d commit 0c34e31
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
args: [--fix]
additional_dependencies:
- --extra-index-url=https://pypi.anaconda.org/rapidsai-wheels-nightly/simple
- .[alpha-spec]
- id: verify-conda-yes
name: pass -y/--yes to conda
description: make sure that all calls to conda pass -y/--yes
Expand Down
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ dependencies = [
"bashlex",
"gitpython",
"packaging",
"rapids-metadata>=0.3.0,<0.4.0.dev0",
"rich",
"tomlkit",
]
Expand All @@ -45,6 +44,10 @@ dependencies = [
test = [
"freezegun",
"pytest",
"rapids-pre-commit-hooks[alpha-spec]",
]
alpha-spec = [
"rapids-metadata>=0.3.0,<0.4.0.dev0",
]

[project.scripts]
Expand Down

0 comments on commit 0c34e31

Please sign in to comment.