File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3232 hooks :
3333 - id : flake8
3434 additional_dependencies :
35- - ' flake8-bugbear==24.12.12 '
36- - ' flake8-typing-as-t==1.0 .0'
37- - ' flake8-comprehensions==3.16 .0'
35+ - ' flake8-bugbear==25.11.29 '
36+ - ' flake8-typing-as-t==1.1 .0'
37+ - ' flake8-comprehensions==3.17 .0'
3838- repo : https://github.com/sirosen/slyp
3939 rev : 0.8.2
4040 hooks :
Original file line number Diff line number Diff line change 1919
2020class _Exit (Exception ):
2121 def __init__ (self , code : int ) -> None :
22+ super ().__init__ (code )
2223 self .code = code
2324
2425
Original file line number Diff line number Diff line change 11from __future__ import annotations
22
3- import typing as t
4-
53import ruamel .yaml
64
75from .base import Transform
86
97
108class GitLabReferenceExpectationViolation (ValueError ):
11- def __init__ (self , msg : str , data : t .Any ) -> None :
12- super ().__init__ (
13- f"check-jsonschema rejects this gitlab !reference tag: { msg } \n { data !r} "
14- )
9+ pass
1510
1611
1712class GitLabReference :
@@ -22,7 +17,10 @@ def from_yaml(
2217 cls , constructor : ruamel .yaml .BaseConstructor , node : ruamel .yaml .Node
2318 ) -> list [str ]:
2419 if not isinstance (node .value , list ):
25- raise GitLabReferenceExpectationViolation ("non-list value" , node )
20+ raise GitLabReferenceExpectationViolation (
21+ "check-jsonschema rejects this gitlab !reference tag: "
22+ f"non-list-value\n { node !r} "
23+ )
2624 return [item .value for item in node .value ]
2725
2826
You can’t perform that action at this time.
0 commit comments