Skip to content

Commit

Permalink
Comply with black
Browse files Browse the repository at this point in the history
  • Loading branch information
refeed committed Feb 20, 2024
1 parent 77994e3 commit 74b6c99
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 12 deletions.
8 changes: 4 additions & 4 deletions src/tirith/core/evaluators/contained_in.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@ def evaluate(self, evaluator_input, evaluator_data):
if result:
evaluation_result["message"] = "Found {} inside {}".format(evaluator_input, evaluator_data)
else:
evaluation_result[
"message"
] = "{} is an unsupported data type for evaluating against value in 'condition.value'".format(
evaluator_data
evaluation_result["message"] = (
"{} is an unsupported data type for evaluating against value in 'condition.value'".format(
evaluator_data
)
)
return evaluation_result
except Exception as e:
Expand Down
8 changes: 4 additions & 4 deletions src/tirith/core/evaluators/contains.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@ def evaluate(self, evaluator_input, evaluator_data):
if result:
evaluation_result["message"] = "Found {} inside {}".format(evaluator_data, evaluator_input)
else:
evaluation_result[
"message"
] = "{} is an unsupported data type for evaluating against value in 'condition.value'".format(
evaluator_data
evaluation_result["message"] = (
"{} is an unsupported data type for evaluating against value in 'condition.value'".format(
evaluator_data
)
)
return evaluation_result
except Exception as e:
Expand Down
8 changes: 4 additions & 4 deletions src/tirith/core/evaluators/not_contained_in.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ def evaluate(self, evaluator_input, evaluator_data):
evaluation_result["message"] = "Found {} inside {}".format(evaluator_input, evaluator_data)
else:
evaluation_result["passed"] = False
evaluation_result[
"message"
] = "{} is an unsupported data type for evaluating against value in 'condition.value'".format(
evaluator_data
evaluation_result["message"] = (
"{} is an unsupported data type for evaluating against value in 'condition.value'".format(
evaluator_data
)
)
return evaluation_result
except Exception as e:
Expand Down
1 change: 1 addition & 0 deletions src/tirith/providers/terraform_plan/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Value = 1, When a resource is not found
Value = 2, When an attribute of a resource is not found
"""

# input->(list ["a.b","c", "d"],value of resource)
# returns->[any, any, any]
import pydash
Expand Down

0 comments on commit 74b6c99

Please sign in to comment.