1
0
Fork 0

Merging upstream version 3.0.3.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-09 21:36:51 +01:00
parent eda8b2e628
commit 689b24add1
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
31 changed files with 215 additions and 350 deletions

View file

@ -1,9 +1,9 @@
from __future__ import annotations
import re
from unittest import mock
import pytest
import re_assert
import pre_commit.constants as C
from pre_commit.languages import golang
@ -40,4 +40,4 @@ def test_golang_infer_go_version_default():
version = ACTUAL_INFER_GO_VERSION(C.DEFAULT)
assert version != C.DEFAULT
assert re.match(r'^\d+\.\d+\.\d+$', version)
re_assert.Matches(r'^\d+\.\d+(?:\.\d+)?$').assert_matches(version)