Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed May 6, 2024
1 parent 0c79525 commit 2457e07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compliance_checker/cf/cf_1_8.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,15 @@ def check_groups(self, ds: Dataset):
for attr in ginstance.ncattrs():
if attr in CF1_8Check.ROOT_GROUP_ONLY_ATTRS:
ctx_hi.messages.append(
f'§2.7.2 Attribute "{ attr }" MAY ONLY be used in the root group '
f'§2.7.2 Attribute "{ attr}" MAY ONLY be used in the root group '
"and SHALL NOT be duplicated or overridden in child groups.",
)

results.append(ctx_hi.to_result())

elif attr in CF1_8Check.NON_ROOT_GROUP_OPT:
ctx_lo.messages.append(
f"§2.7.2 Note: attribute '{ attr }' found on non-root group '{ gname }'. "
f"§2.7.2 Note: attribute '{ attr}' found on non-root group '{ gname}'. "
"This is optional for non-root groups. It is allowed in order to provide additional "
"provenance and description of the subsidiary data. It does not override "
"attributes from parent groups.",
Expand Down

0 comments on commit 2457e07

Please sign in to comment.