exclude_json_dir = {*[get_absolute_path(p) for p in EXCLUDE_DIRS]}
for filename in glob.iglob("./**/*.json", recursive=True):
filepath = get_absolute_path(filename)
if any(filepath.endswith(suffix) for suffix in exclude_json_path):
continue
if any(filepath.startswith(prefix) for prefix in exclude_json_dir):
continue
After Change
break the config API.
for filename in glob.iglob("pytext/**/*.json", recursive=True):
if any(f in filenamefor f in EXCLUDE_JSON):
continue
if any(d in filename for d in EXCLUDE_DIRS):
continue