Skip to content

Commit

Permalink
remove validate_dict
Browse files Browse the repository at this point in the history
  • Loading branch information
farchaab committed Dec 6, 2024
1 parent 027710f commit 6be7d4d
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions zamp/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
import yaml
import sys
import subprocess
import yaml
import json


from snaketool_utils.cli_utils import (
msg,
Expand All @@ -16,15 +15,6 @@
)


def validate_dict(ctx, param, value):
try:
return json.loads(value)
except json.JSONDecodeError:
raise click.BadParameter(
"Input should be a valid JSON string representing a dictionary."
)


def snake_base(rel_path):
return os.path.join(os.path.dirname(os.path.realpath(__file__)), rel_path)

Expand Down

0 comments on commit 6be7d4d

Please sign in to comment.