From 0c79525039dbf90a1fdabdc6ef6bd76840dcf497 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 May 2024 20:38:03 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/psf/black: 24.4.0 → 24.4.2](https://github.com/psf/black/compare/24.4.0...24.4.2) - [github.com/astral-sh/ruff-pre-commit: v0.3.7 → v0.4.3](https://github.com/astral-sh/ruff-pre-commit/compare/v0.3.7...v0.4.3) - [github.com/tox-dev/pyproject-fmt: 1.7.0 → 1.8.0](https://github.com/tox-dev/pyproject-fmt/compare/1.7.0...1.8.0) --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 From 2457e0761c395ab1bd01762af5134666f4e767c6 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 May 2024 20:38:14 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- compliance_checker/cf/cf_1_8.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.",