diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0f7dfe1..be2dbad 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: -- repo: https://github.com/psf/black - rev: 23.7.0 +- repo: https://github.com/psf/black-pre-commit-mirror + rev: 26.5.1 hooks: - id: black name: black @@ -23,7 +23,7 @@ repos: additional_dependencies: [".[jupyter]"] - repo: https://github.com/pycqa/flake8 - rev: 6.1.0 + rev: 7.3.0 hooks: - id: flake8 additional_dependencies: @@ -42,19 +42,19 @@ repos: language: python - repo: https://github.com/asottile/pyupgrade - rev: v3.10.1 + rev: v3.21.2 hooks: - id: pyupgrade args: [--py39-plus] - repo: https://github.com/PyCQA/isort - rev: 5.12.0 + rev: 9.0.0b1 hooks: - id: isort files: \.py$ - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v6.0.0 hooks: - id: check-builtin-literals - id: check-added-large-files @@ -68,7 +68,7 @@ repos: - id: trailing-whitespace - repo: https://github.com/regebro/pyroma - rev: "4.2" + rev: "5.1b1" hooks: - id: pyroma args: ["-d", "--min=10", "."] @@ -77,7 +77,7 @@ repos: - cython - repo: https://github.com/mgedmin/check-manifest - rev: "0.49" + rev: "0.51" hooks: - id: check-manifest args: ["--ignore=.nox,build", "--no-build-isolation"] diff --git a/src/bmi_wavewatch3/bmi.py b/src/bmi_wavewatch3/bmi.py index b6ef32b..6a2db7d 100644 --- a/src/bmi_wavewatch3/bmi.py +++ b/src/bmi_wavewatch3/bmi.py @@ -19,7 +19,6 @@ class BmiWaveWatch3(Bmi): - """BMI-mediated access to WaveWatch III data.""" _name = "bmi-wavewatch3" diff --git a/src/bmi_wavewatch3/cli.py b/src/bmi_wavewatch3/cli.py index 9d60612..79829b0 100644 --- a/src/bmi_wavewatch3/cli.py +++ b/src/bmi_wavewatch3/cli.py @@ -133,17 +133,13 @@ def info(ctx, all): endpoint = urllib.parse.urlunparse( [source.SCHEME, source.NETLOC, source.PREFIX, "", "", ""] ) - sections.append( - textwrap.dedent( - f""" + sections.append(textwrap.dedent(f""" [wavewatch3.sources.{name}] grids = {sorted(source.GRIDS)!r} quantities = {sorted(source.QUANTITIES)!r} min_date = {source.MIN_DATE!r} max_date = {source.MAX_DATE!r} - endpoint = {endpoint!r}""" - ).lstrip() - ) + endpoint = {endpoint!r}""").lstrip()) print((2 * os.linesep).join(sections))