Skip to content

Commit

Permalink
Added black changes
Browse files Browse the repository at this point in the history
  • Loading branch information
HenningTimm committed Dec 13, 2023
1 parent 27f2c5e commit cacd090
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion yml2block/rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,15 @@ def no_trailing_white_spaces(list_item, tsv_keyword):
"""
entries_to_check = {
"metadataBlock": ("name", "dataverseAlias"),
"datasetField": ("name", "title", "description", "watermark", "fieldType", "parent", "metadatablock_id"),
"datasetField": (
"name",
"title",
"description",
"watermark",
"fieldType",
"parent",
"metadatablock_id",
),
"controlledVocabulary": ("Value", "identifier"),
}

Expand Down
2 changes: 1 addition & 1 deletion yml2block/tsv_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def _parse(block):
# For consistency with the yaml format
toplevel_key = toplevel_key_with_prefix.lstrip("#")
row_as_dict = dict()

for key, value in row.items():
if key is None:
# These entries cannot be associated with a column header
Expand Down

0 comments on commit cacd090

Please sign in to comment.