Skip to content

Commit

Permalink
Remove use of yq (#908)
Browse files Browse the repository at this point in the history
# Pull Request

## Title

Remove use of yq.

---

## Description

Removes the use of yq which doesn't always exist and running it via
conda apparently has issues.

---

## Type of Change

- 🛠️ Bug fix

---

## Testing

CI

---

## Additional Notes (optional)

Fixes a bug introduced in #904 

---
  • Loading branch information
bpkroth authored Jan 4, 2025
1 parent 795d1b0 commit edb0a7c
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 9 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ FORMAT_COMMON_PREREQS := build/conda-env.${CONDA_ENV_NAME}.build-stamp
FORMAT_COMMON_PREREQS += .pre-commit-config.yaml
FORMAT_COMMON_PREREQS += $(MLOS_GLOBAL_CONF_FILES)

# Formatting pre-commit hooks are marked with the "manual" stage.
FORMATTERS := $(shell cat .pre-commit-config.yaml | yq -r '.repos[].hooks[] | select((.stages // []) | contains(["manual"])) | .id')
CHECKERS := $(shell cat .pre-commit-config.yaml | yq -r '.repos[].hooks[] | select((.stages // []) | contains(["manual"]) | not) | .id')
# Formatting pre-commit hooks are marked with the "manual" stage in .pre-commit-config.yaml
# Since yq is not installed everywhere we need to sync the list here as well.
FORMATTERS := end-of-file-fixer pretty-format-json trailingwhitespace licenseheaders pyupgrade isort black docformatter

# Provide convenience methods to call individual formatters and checkers via `make` as well.
# e.g., `make black` or `make pylint`
Expand Down
1 change: 0 additions & 1 deletion conda-envs/mlos-3.10.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ channels:
dependencies:
# Basic dev environment packages.
# All other dependencies for the mlos modules come from pip.
- yq
- pip
- python-build
- jupyter
Expand Down
1 change: 0 additions & 1 deletion conda-envs/mlos-3.11.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ channels:
dependencies:
# Basic dev environment packages.
# All other dependencies for the mlos modules come from pip.
- yq
- pip
- python-build
- jupyter
Expand Down
1 change: 0 additions & 1 deletion conda-envs/mlos-3.12.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ channels:
dependencies:
# Basic dev environment packages.
# All other dependencies for the mlos modules come from pip.
- yq
- pip
- python-build
- jupyter
Expand Down
1 change: 0 additions & 1 deletion conda-envs/mlos-3.13.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ channels:
dependencies:
# Basic dev environment packages.
# All other dependencies for the mlos modules come from pip.
- yq
- pip
- python-build
- jupyter
Expand Down
1 change: 0 additions & 1 deletion conda-envs/mlos-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ channels:
dependencies:
# Basic dev environment packages.
# All other dependencies for the mlos modules come from pip.
- yq
- pip
- python-build
- jupyter
Expand Down
1 change: 0 additions & 1 deletion conda-envs/mlos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ channels:
dependencies:
# Basic dev environment packages.
# All other dependencies for the mlos modules come from pip.
- yq
- pip
- python-build
- jupyter
Expand Down

0 comments on commit edb0a7c

Please sign in to comment.