3838
3939FieldName = str
4040"""The name of a field within a model/schema."""
41- TypeOrDef = Union [
41+ TypeOrDef = Union [ # pylint: disable=C0103
4242 TypeName , "_CallableTypeDefinition" , "_ModelTypeDefinition" , "_TypeAliasDefinition"
4343]
4444"""The name or definition of a type."""
@@ -181,7 +181,7 @@ class V1EngineConfig(BaseEngineConfig):
181181 @validate_arguments
182182 def _update_rule_store (self , rule_store : dict [RuleName , BusinessComponentSpecConfigUnion ]):
183183 """Update the rule store rules to add/override the rules from the new store."""
184- self ._rule_store_rules .update (rule_store )
184+ self ._rule_store_rules .update (rule_store ) # pylint: disable=E1101
185185
186186 def _load_rule_store (self , uri : URI ):
187187 """Load a JSON rule store from the provided URI and update the stored
@@ -198,7 +198,7 @@ def _load_rule_store(self, uri: URI):
198198 def __init__ (self , * args , ** kwargs ):
199199 super ().__init__ (* args , ** kwargs )
200200 uri_prefix = self .location .rsplit ("/" , 1 )[0 ]
201- for rule_store_config in self .transformations .rule_stores :
201+ for rule_store_config in self .transformations .rule_stores : # pylint: disable=E1101
202202 uri = joinuri (uri_prefix , rule_store_config .filename )
203203 self ._load_rule_store (uri )
204204
@@ -281,7 +281,7 @@ def _load_rules_and_vars(self) -> tuple[list[Rule], list[TemplateVariables]]:
281281 rules , local_variable_list = [], []
282282 added_rules : set [RuleName ] = set ()
283283
284- for index , complex_rule_config in enumerate (self .transformations .complex_rules ):
284+ for index , complex_rule_config in enumerate (self .transformations .complex_rules ): # pylint: disable=E1101
285285 rule , local_params , deps = self ._resolve_business_rule (complex_rule_config )
286286 missing_rules = deps - added_rules
287287 if missing_rules :
@@ -295,9 +295,9 @@ def _load_rules_and_vars(self) -> tuple[list[Rule], list[TemplateVariables]]:
295295
296296 rule , local_params = self ._create_rule (
297297 name = "root" ,
298- rules = self .transformations .rules ,
299- filters = self .transformations .filters ,
300- post_filter_rules = self .transformations .post_filter_rules ,
298+ rules = self .transformations .rules , # pylint: disable=E1101
299+ filters = self .transformations .filters , # pylint: disable=E1101
300+ post_filter_rules = self .transformations .post_filter_rules , # pylint: disable=E1101
301301 )
302302 rules .append (rule )
303303 local_variable_list .append (local_params )
@@ -338,14 +338,14 @@ def load_error_message_info(self, uri):
338338
339339 def get_reference_data_config (self ) -> dict [EntityName , ReferenceConfig ]: # type: ignore
340340 """Gets the reference data configuration from the transformations"""
341- return self .transformations .reference_data
341+ return self .transformations .reference_data # pylint: disable=E1101
342342
343343 def get_rule_metadata (self ) -> RuleMetadata :
344344 """Gets the rule metadata from the Engine configuration"""
345345 rules , local_variables = self ._load_rules_and_vars ()
346346 return RuleMetadata (
347347 rules = rules ,
348348 local_variables = local_variables ,
349- global_variables = self .transformations .parameters ,
349+ global_variables = self .transformations .parameters , # pylint: disable=E1101
350350 reference_data_config = self .get_reference_data_config (),
351351 )
0 commit comments