Skip to content

Install pre-commit-update from PyPI and restrict conda to conda-forge channel#730

Merged
xylar merged 2 commits into
masterfrom
copilot/install-pre-commit-update-from-pypi
Jun 1, 2026
Merged

Install pre-commit-update from PyPI and restrict conda to conda-forge channel#730
xylar merged 2 commits into
masterfrom
copilot/install-pre-commit-update-from-pypi

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jun 1, 2026

pre-commit-update is not available on conda-forge, and conda install without explicit channel overrides can fall back to the anaconda defaults channel.

Changes

  • pre_commit_update_workflow.yml

    • Replace conda install with micromamba install --override-channels -c conda-forge for pre-commit and gh
    • Install pre-commit-update via pip (PyPI) instead of conda
  • docs_workflow.yml

    • Replace conda install with micromamba install --override-channels -c conda-forge to prevent implicit use of the anaconda defaults channel
# Before
conda install -y pre-commit pre-commit-update "gh !=2.76.0"

# After
micromamba install -y --override-channels -c conda-forge \
  pre-commit "gh !=2.76.0"
python -m pip install pre-commit-update

Copilot AI linked an issue Jun 1, 2026 that may be closed by this pull request
- Use micromamba install --override-channels -c conda-forge instead of
  conda install to prevent use of the anaconda defaults channel
- Install pre-commit-update via pip (PyPI) instead of conda-forge
  where the package is not available
Copilot AI changed the title [WIP] Install pre-commit-update from PyPI instead of conda-forge Install pre-commit-update from PyPI and restrict conda to conda-forge channel Jun 1, 2026
Copilot finished work on behalf of xylar June 1, 2026 11:16
Copilot AI requested a review from xylar June 1, 2026 11:16
@xylar xylar marked this pull request as ready for review June 1, 2026 11:17
@xylar xylar added conda package ci Changes that affect github actions CI bug labels Jun 1, 2026
@xylar xylar merged commit ae66ad8 into master Jun 1, 2026
5 checks passed
@xylar xylar deleted the copilot/install-pre-commit-update-from-pypi branch June 1, 2026 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug ci Changes that affect github actions CI conda package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Install pre-commit-update from PyPI, not conda-forge

2 participants