File tree 2 files changed +6
-19
lines changed
2 files changed +6
-19
lines changed Original file line number Diff line number Diff line change 185
185
"lkml>=1.3.4" ,
186
186
* sqlglot_lib ,
187
187
"GitPython>2" ,
188
- "python-liquid" ,
188
+ # python-liquid 2 includes a bunch of breaking changes.
189
+ # See https://jg-rp.github.io/liquid/migration/
190
+ # Eventually we should fully upgrade to v2, but that will require
191
+ # us to drop Python 3.8 support first.
192
+ "python-liquid<2" ,
189
193
"deepmerge>=1.1.1" ,
190
194
}
191
195
Original file line number Diff line number Diff line change 8
8
import yaml
9
9
from deepdiff import DeepDiff
10
10
from deepdiff .model import DiffLevel
11
- from deepdiff .operator import BaseOperator
12
11
from typing_extensions import Literal
13
12
14
13
ReportType = Literal [
@@ -59,27 +58,12 @@ def __repr__(self):
59
58
60
59
@dataclasses .dataclass
61
60
class DeltaInfo :
62
- """Information about an MCP used to construct a diff delta.
63
-
64
- In a separate class so it can be ignored by DeepDiff via MCPDeltaInfoOperator.
65
- """
61
+ """Information about an MCP used to construct a diff delta."""
66
62
67
63
idx : int # Location in list of MCEs in golden file
68
64
original : Dict [str , Any ] # Original json-serialized MCP
69
65
70
66
71
- class DeltaInfoOperator (BaseOperator ):
72
- """Warning: Doesn't seem to be working right now.
73
- Ignored via an ignore path as an extra layer of defense.
74
- """
75
-
76
- def __init__ (self ):
77
- super ().__init__ (types = [DeltaInfo ])
78
-
79
- def give_up_diffing (self , * args : Any , ** kwargs : Any ) -> bool :
80
- return True
81
-
82
-
83
67
AspectsByUrn = Dict [str , Dict [str , List [AspectForDiff ]]]
84
68
85
69
@@ -176,7 +160,6 @@ def create(
176
160
t2 = t2 ,
177
161
exclude_regex_paths = ignore_paths ,
178
162
ignore_order = True ,
179
- custom_operators = [DeltaInfoOperator ()],
180
163
)
181
164
if diff :
182
165
aspect_changes [urn ][aspect_name ] = MCPAspectDiff .create (diff )
You can’t perform that action at this time.
0 commit comments