Skip to content

Commit

Permalink
chore: lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MrBlenny committed Oct 10, 2024
1 parent 1c8fa52 commit 04d85f5
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
build
install
log
*.egg-info
*.egg-info
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,14 @@ def preprocess_inputs(language, name, value, nested_name_list):
raise compile_error('No type defined for parameter %s' % param_name)

# check for invalid syntax
valid_keys = {'default_value', 'description', 'read_only', 'additional_constraints', 'validation', 'type'}
valid_keys = {
'default_value',
'description',
'read_only',
'additional_constraints',
'validation',
'type',
}
invalid_keys = value.keys() - valid_keys
if len(invalid_keys) > 0:
raise compile_error(
Expand Down Expand Up @@ -804,13 +811,21 @@ def parse_params(self, name, value, nested_name_list):
if is_runtime_parameter:
declare_parameter_set = SetRuntimeParameter(param_name, code_gen_variable)
declare_parameter = DeclareRuntimeParameter(
code_gen_variable, description, read_only, validations, additional_constraints
code_gen_variable,
description,
read_only,
validations,
additional_constraints,
)
declare_parameter.add_set_runtime_parameter(declare_parameter_set)
update_parameter = UpdateRuntimeParameter(param_name, code_gen_variable)
else:
declare_parameter = DeclareParameter(
code_gen_variable, description, read_only, validations, additional_constraints
code_gen_variable,
description,
read_only,
validations,
additional_constraints,
)
declare_parameter_set = SetParameter(param_name, code_gen_variable)
update_parameter = UpdateParameter(param_name, code_gen_variable)
Expand Down

0 comments on commit 04d85f5

Please sign in to comment.