diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 805ce058..675e54db 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,7 +19,7 @@ repos: - test_requirements.txt - repo: https://github.com/psf/black - rev: 24.4.0 + rev: 24.4.2 hooks: - id: black language_version: python3 @@ -31,12 +31,12 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.3.7 + rev: v0.4.3 hooks: - id: ruff - repo: https://github.com/tox-dev/pyproject-fmt - rev: 1.7.0 + rev: 1.8.0 hooks: - id: pyproject-fmt diff --git a/compliance_checker/cf/cf_1_8.py b/compliance_checker/cf/cf_1_8.py index 0f001a8c..9d35e56a 100644 --- a/compliance_checker/cf/cf_1_8.py +++ b/compliance_checker/cf/cf_1_8.py @@ -93,7 +93,7 @@ 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.", ) @@ -101,7 +101,7 @@ def check_groups(self, ds: Dataset): 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.",