Skip to content

Create tags so people can use pre-commit autoupdate #7

Closed

Description

@flying-sheep

There are two ways in which people use tools like biome:

  1. A locally installed tool version (i.e. they manage the install environment themselves, e.g. using yarn or npm)

  2. Using pre-commit’s environment management to install the tool version

    This variant is particularly useful for projects that don’t use a JS environment themselves, e.g. Python projects.

The second use case integrates nicely with pre-commit autoupdate if the repo has tags matching the tool version.

Other pre-commit mirror repos show how it’s done, and the pyproject.toml for this repo would look like this:

{
    "name": "@biomejs/pre-commit",
    "description": "Biome pre-commit node package",
    "version": "1.8.3",
    "dependencies": {"@biomejs/biome": "1.8.3"}
}

The two mentions of 1.8.3 would be updated by a workflow like in other mirror repos.

People who want to use a locally installed version of biome could use the instructions mentioned here: https://github.com/biomejs/pre-commit?tab=readme-ov-file#using-biome-with-a-local-pre-commit-hook

Activity

  1. ematipico commented on Sep 18, 2024

    @ematipico
    Member

    PRs are welcome

  2. Freed-Wu commented on Jan 1, 2025

    @Freed-Wu

    Any progress?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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