Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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:
Expand All @@ -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
Expand All @@ -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", "."]
Expand All @@ -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"]
Expand Down
1 change: 0 additions & 1 deletion src/bmi_wavewatch3/bmi.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@


class BmiWaveWatch3(Bmi):

"""BMI-mediated access to WaveWatch III data."""

_name = "bmi-wavewatch3"
Expand Down
8 changes: 2 additions & 6 deletions src/bmi_wavewatch3/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down
Loading