Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Optionally do not mirror "alpha" ("Pre-release") versions: allow to mirror the "Latest" release #146

@simon-liebehenschel

Description

@simon-liebehenschel

I've scrolled through all issues here, and I see no duplicates.

There is a workflow:

  1. pre-commit autoupdate
  2. For the https://github.com/pre-commit/mirrors-prettier I automatically get 3.0.0-alpha.0 unreleased version which is simply broken due to the bugs and regressions introduced on the "prettier" side.
  3. I have manually rollback the version for this hook to the latest released stable version rev: v2.7.1.

Questions:

  1. Can we by default do not update to "alpha" versions? Obviously, alpha versions may be not stable or broken.
  2. If (1) is impossible: can we add pre-commit autoupdate --stable (or --released) to update to latest stable versions?
  3. Is there any simple way to exclude "prettier" from the pre-commit autoupdate command? Or easy workaround? I just want to do not reinvent the wheel.

Versions:

  • pre-commit = 2.20.0
  • Python 3.10

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions