Skip to content

Commit

Permalink
Release version 0.0.0.dev347
Browse files Browse the repository at this point in the history
  • Loading branch information
AAriam committed Nov 5, 2024
1 parent 270bad0 commit 21d75ee
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 21 deletions.
20 changes: 10 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespaces = true
# ----------------------------------------- Project Metadata -------------------------------------
#
[project]
version = "0.0.0.dev346"
version = "0.0.0.dev347"
name = "ControlMan"
dependencies = [
"packaging >= 23.2, < 24",
Expand All @@ -27,18 +27,18 @@ dependencies = [
"jsonpath-ng == 1.6.1",
"ruamel.yaml == 0.17.40",
"Jinja2 >= 3, < 4",
"PyLinks == 0.0.0.dev43",
"LoggerMan == 0.0.0.dev59",
"PySerials == 0.0.0.dev33",
"GitTidy == 0.0.0.dev56",
"PyLinks == 0.0.0.dev44",
"LoggerMan == 0.0.0.dev60",
"PySerials == 0.0.0.dev34",
"GitTidy == 0.0.0.dev57",
"PkgData == 0.0.0.dev5",
"PyShellMan == 0.0.0.dev20",
"PyShellMan == 0.0.0.dev21",
"PySyntax == 0.0.0.dev5",
"ExceptionMan == 0.0.0.dev30",
"MDit == 0.0.0.dev30",
"JSONSchemata == 0.0.0.dev29",
"ExceptionMan == 0.0.0.dev31",
"MDit == 0.0.0.dev31",
"JSONSchemata == 0.0.0.dev30",
"VersionMan == 0.0.0.dev248",
"HTMP == 0.0.0.dev5",
"LicenseMan == 0.0.0.dev16",
"LicenseMan == 0.0.0.dev17",
]
requires-python = ">=3.10"
18 changes: 9 additions & 9 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ referencing == 0.35.1
jsonpath-ng == 1.6.1
ruamel.yaml == 0.17.40
Jinja2 >= 3, < 4
PyLinks == 0.0.0.dev43
LoggerMan == 0.0.0.dev59
PySerials == 0.0.0.dev33
GitTidy == 0.0.0.dev56
PyLinks == 0.0.0.dev44
LoggerMan == 0.0.0.dev60
PySerials == 0.0.0.dev34
GitTidy == 0.0.0.dev57
PkgData == 0.0.0.dev5
PyShellMan == 0.0.0.dev20
PyShellMan == 0.0.0.dev21
PySyntax == 0.0.0.dev5
ExceptionMan == 0.0.0.dev30
MDit == 0.0.0.dev30
JSONSchemata == 0.0.0.dev29
ExceptionMan == 0.0.0.dev31
MDit == 0.0.0.dev31
JSONSchemata == 0.0.0.dev30
VersionMan == 0.0.0.dev248
HTMP == 0.0.0.dev5
LicenseMan == 0.0.0.dev16
LicenseMan == 0.0.0.dev17
5 changes: 3 additions & 2 deletions src/controlman/data_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@

def validate(
data: dict,
schema: _Literal["main", "local", "cache"] = "main",
schema: _Literal["main", "local", "cache", "entity"] = "main",
source: _Literal["source", "compiled"] = "compiled",
before_substitution: bool = False,
) -> None:
"""Validate data against a schema."""
schema_dict = _ps.read.yaml_from_file(path=_schema_dir_path / f"{schema}.yaml")
relpath = "def/entity-def.yaml" if schema == "entity" else f"{schema}.yaml"
schema_dict = _ps.read.yaml_from_file(path=_schema_dir_path / relpath)
_js.edit.required_last(schema_dict)
_add_custom_keys(schema_dict)
if before_substitution:
Expand Down

0 comments on commit 21d75ee

Please sign in to comment.