diff --git a/.tests/schemas.py b/.tests/schemas.py index b1f4c3100..edf6adbec 100644 --- a/.tests/schemas.py +++ b/.tests/schemas.py @@ -1,3 +1,4 @@ +from pathlib import Path import argparse import json import os @@ -10,7 +11,10 @@ def check_schemas(data_root, schemas_dir, verbose=False): schemas = ('category.json', 'video.json') - all_file_paths = get_json_files(data_root) + all_file_paths = get_json_files( + data_root, + exclude=set(Path(schemas_dir).rglob('*.json')), + ) error_count = 0