Skip to content

Commit 8ad724a

Browse files
committed
make it slightly more verbose
1 parent 7d8b303 commit 8ad724a

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

reproschema/validate.py

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,21 @@
55
from .jsonldutils import load_file, validate_data
66
from .utils import lgr, start_server, stop_server
77

8-
DIR_TO_SKIP = [".git", "__pycache__", "env", "venv"]
9-
FILES_TO_SKIP = [".DS_Store", ".gitignore", ".flake8", ".autorc", "LICENSE"]
8+
DIR_TO_SKIP = [
9+
".git",
10+
".github",
11+
"__pycache__",
12+
"env",
13+
"venv",
14+
]
15+
FILES_TO_SKIP = [
16+
".DS_Store",
17+
".gitignore",
18+
".flake8",
19+
".autorc",
20+
"LICENSE",
21+
"Makefile",
22+
]
1023
SUPPORTED_EXTENSIONS = [
1124
".jsonld",
1225
"json",
@@ -59,7 +72,7 @@ def validate_dir(
5972
lgr.info(f"Skipping directory {directory}")
6073
return True
6174

62-
lgr.debug(f"Validating directory {directory}")
75+
lgr.info(f"Validating directory {directory}")
6376

6477
files_to_validate = [
6578
str(x)
@@ -120,6 +133,8 @@ def validate(path):
120133
"""
121134
if os.path.isdir(path):
122135

136+
lgr.info(f"Validating directory {path}")
137+
123138
stop, port = start_server()
124139
http_kwargs = {"port": port}
125140
started = True

0 commit comments

Comments
 (0)