Skip to content

Commit

Permalink
Black fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
TheChymera committed Jun 9, 2022
1 parent 9252f3e commit 8b7826e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tools/schemacode/schemacode/validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@
DIR_ENTITIES = ["subject", "session"]


def _get_paths(bids_paths,
pseudofile_suffixes = [],
):
def _get_paths(
bids_paths,
pseudofile_suffixes=[],
):
"""
Get all paths from a list of directories, excluding hidden subdirectories from distribution.
Expand Down Expand Up @@ -660,6 +661,7 @@ def log_errors(validation_result):
for i in validation_result["path_tracking"]:
lgr.warning("The `%s` file was not matched by any regex schema entry.", i)


def _query_pseudofile_suffixes(my_schema):
"""Query schema for suffixes which identify directory entities.
Expand Down Expand Up @@ -687,6 +689,7 @@ def _query_pseudofile_suffixes(my_schema):
pseudofile_suffixes.append(i[:-1])
return pseudofile_suffixes


def validate_bids(
bids_paths,
schema_reference_root="/usr/share/bids-schema/",
Expand Down

0 comments on commit 8b7826e

Please sign in to comment.