clan-config: improve jsonschema arg parsing

- output json to stdout after success
- expect args in the style: `foo.bar = baz`
- handle different input types
- cast input types on best effort basis
- throw meaningful errors
This commit is contained in:
DavHau
2023-08-11 00:05:52 +02:00
parent d04278e9b1
commit 0a9b914ad5
4 changed files with 218 additions and 93 deletions

View File

@@ -27,7 +27,11 @@ disallow_untyped_defs = true
no_implicit_optional = true
[[tool.mypy.overrides]]
module = "setuptools.*"
module = "argcomplete.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "jsonschema.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
@@ -35,7 +39,7 @@ module = "pytest.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "argcomplete.*"
module = "setuptools.*"
ignore_missing_imports = true
[tool.ruff]