Skip to content

Commit

Permalink
remove duplicated method
Browse files Browse the repository at this point in the history
  • Loading branch information
rajeee committed Jul 18, 2024
1 parent e994499 commit e484d10
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions buildstockbatch/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,18 +390,6 @@ def validate_project_schema(project_file):
data = yamale.make_data(project_file, parser="ruamel")
return yamale.validate(schema, data, strict=True)

@staticmethod
def validate_project_schema(project_file):
cfg = get_project_configuration(project_file)
schema_version = cfg.get("schema_version")
version_schema = os.path.join(os.path.dirname(__file__), "schemas", f"v{schema_version}.yaml")
if not os.path.isfile(version_schema):
logger.error(f"Could not find validation schema for YAML version {schema_version}")
raise FileNotFoundError(version_schema)
schema = yamale.make_schema(version_schema)
data = yamale.make_data(project_file, parser="ruamel")
return yamale.validate(schema, data, strict=True)

@staticmethod
def validate_misc_constraints(project_file):
# validate other miscellaneous constraints
Expand Down

0 comments on commit e484d10

Please sign in to comment.