Skip to content

Do version numbers have to have a '.'? #1794

@paddyroddy

Description

@paddyroddy

Looking at this line it looks to be testing for the presence of a dot in the version number

if '.' not in rev and not re.match(r'^[a-fA-F0-9]+$', rev):
but what if a repo is just following a simple v1/v2 model?

I'm using this repo https://gitlab.salort.eu/jsalort/latexhook/-/tags which has a v1 tag. My .pre-commit-config.yaml looks like this:

repos:
    - repo: https://gitlab.salort.eu/jsalort/latexhook
      rev: v1
      hooks:
          - id: latexindent

This means every time i commit I get this error at the top
image

My version is pre-commit==2.10.1 and I don't think this used to happen

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions