Skip to content

Commit

Permalink
Add jsonschema to tools requirements.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
juliocc committed May 5, 2023
1 parent 05ed1bf commit 873c45d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions tools/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ marko
requests
yamale
yapf
types-jsonschema
2 changes: 1 addition & 1 deletion tools/validate_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def _validate(path: Path, validator) -> ValidationResult:
@click.argument('dirs', type=click.Path(exists=True, file_okay=False), nargs=-1)
@click.option('-v', '--verbose', is_flag=True, default=False,
help='Print additional validation details.')
def main(dirs: str, verbose: bool) -> int:
def main(dirs: list[str], verbose: bool) -> int:
instances = set()
for dir_name in dirs:
instances |= set(Path(dir_name).glob("**/metadata.yaml"))
Expand Down

0 comments on commit 873c45d

Please sign in to comment.