Skip to content

Commit 7be8ae4

Browse files
[pre-commit.ci] pre-commit autoupdate (#330)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/psf/black: 24.10.0 → 25.1.0](psf/black@24.10.0...25.1.0) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent e0a666d commit 7be8ae4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+61
-112
lines changed

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ repos:
1616
- id: check-added-large-files
1717
# Code formatting with black
1818
- repo: https://github.com/psf/black
19-
rev: 24.10.0
19+
rev: 25.1.0
2020
hooks:
2121
- id: black

nowcast/daily_river_flows.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Module for calculating daily river flows
2+
Module for calculating daily river flows
33
"""
44

55
import functools

nowcast/figures/publish/surface_current_tiles.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
# SPDX-License-Identifier: Apache-2.0
1717

1818

19-
""" Produce surface currents tile figures in both the website themed and un-themed style.
20-
"""
19+
"""Produce surface currents tile figures in both the website themed and un-themed style."""
2120

2221
import datetime
2322

nowcast/lib.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
# SPDX-License-Identifier: Apache-2.0
1717

1818

19-
"""SalishSeaCast utility functions for use by workers.
20-
"""
19+
"""SalishSeaCast utility functions for use by workers."""
2120
import grp
2221
import logging
2322
import logging.handlers

nowcast/plots.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
""" script to generate plots for a simulation
2-
Use: python plots.py sim_date mode
3-
Eg: python plots.py 2015-03-06 nowcast generates plots for the
4-
March 6, 2015 nowcast. sim_date corresponds to the date simulated.
5-
plots are stored in a directory mode/run_dat, where run_date is the
6-
date the simulation was run.
1+
"""script to generate plots for a simulation
2+
Use: python plots.py sim_date mode
3+
Eg: python plots.py 2015-03-06 nowcast generates plots for the
4+
March 6, 2015 nowcast. sim_date corresponds to the date simulated.
5+
plots are stored in a directory mode/run_dat, where run_date is the
6+
date the simulation was run.
77
"""
88

99
import datetime

nowcast/ssh_sftp.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
# SPDX-License-Identifier: Apache-2.0
1717

1818

19-
"""SalishSeaCast ssh and sftp client functions.
20-
"""
19+
"""SalishSeaCast ssh and sftp client functions."""
2120
import os
2221

2322
import paramiko

nowcast/workers/ping_erddap.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
"""SalishSeaCast worker that creates flag files to tell the ERDDAP server
16-
to reload datasets for which new results have been downloaded.
16+
to reload datasets for which new results have been downloaded.
1717
"""
1818
import logging
1919
from pathlib import Path

nowcast/workers/watch_ww3.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
"""Salish Sea nowcast worker that monitors and reports on the progress of a WaveWatch3 run
16-
on the ONC cloud computing facility.
16+
on the ONC cloud computing facility.
1717
"""
1818
import logging
1919
import os

tests/conftest.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
# SPDX-License-Identifier: Apache-2.0
1717

1818

19-
"""Fixtures for SalishSeaCast test suite.
20-
"""
19+
"""Fixtures for SalishSeaCast test suite."""
2120
from pathlib import Path
2221
from unittest.mock import patch
2322

tests/release_mgmt/test_tag_release.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
# SPDX-License-Identifier: Apache-2.0
1717

1818

19-
"""Unit tests for SalishSeaCast tag_release script.
20-
"""
19+
"""Unit tests for SalishSeaCast tag_release script."""
2120
from unittest.mock import Mock, call, patch
2221

2322
import hglib

tests/test_analyze.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
# SPDX-License-Identifier: Apache-2.0
1717

1818

19-
"""Unit tests for analyze module.
20-
"""
19+
"""Unit tests for analyze module."""
2120
import numpy as np
2221
import pytest
2322

tests/test_daily_river_flows.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
# SPDX-License-Identifier: Apache-2.0
1717

1818

19-
"""Unit tests for daily_river_flows module.
20-
"""
19+
"""Unit tests for daily_river_flows module."""
2120
import io
2221
import os
2322
import textwrap

tests/test_next_workers.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
# SPDX-License-Identifier: Apache-2.0
1717

1818

19-
"""Unit tests for nowcast.next_workers module.
20-
"""
19+
"""Unit tests for nowcast.next_workers module."""
2120
import inspect
2221
import textwrap
2322
from pathlib import Path

tests/test_residuals.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
# SPDX-License-Identifier: Apache-2.0
1717

1818

19-
"""Unit tests for SalishSeaCast residuals module.
20-
"""
19+
"""Unit tests for SalishSeaCast residuals module."""
2120
from datetime import datetime
2221

2322
import pytest

tests/workers/test_archive_tarball.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
# SPDX-License-Identifier: Apache-2.0
1717

1818

19-
"""Unit tests for SalishSeaCast archive_tarball worker.
20-
"""
19+
"""Unit tests for SalishSeaCast archive_tarball worker."""
2120
import argparse
2221
import logging
2322
import textwrap

tests/workers/test_collect_NeahBay_ssh.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
# SPDX-License-Identifier: Apache-2.0
1717

1818

19-
"""Unit tests for SalishSeaCast collect_NeahBay_ssh worker.
20-
"""
19+
"""Unit tests for SalishSeaCast collect_NeahBay_ssh worker."""
2120
import logging
2221
import os
2322
import textwrap

tests/workers/test_collect_river_data.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
# SPDX-License-Identifier: Apache-2.0
1717

1818

19-
"""Unit tests for SalishSeaCast collect_river_data worker.
20-
"""
19+
"""Unit tests for SalishSeaCast collect_river_data worker."""
2120
import logging
2221
import textwrap
2322
from pathlib import Path

tests/workers/test_collect_weather.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
# SPDX-License-Identifier: Apache-2.0
1717

1818

19-
"""Unit tests for SalishSeaCast collect_weather worker.
20-
"""
19+
"""Unit tests for SalishSeaCast collect_weather worker."""
2120
import grp
2221
import logging
2322
import os

tests/workers/test_crop_gribs.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
# SPDX-License-Identifier: Apache-2.0
1717

1818

19-
"""Unit test for SalishSeaCast crop_gribs worker.
20-
"""
19+
"""Unit test for SalishSeaCast crop_gribs worker."""
2120
import grp
2221
import logging
2322
import os

tests/workers/test_download_fvcom_results.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
# SPDX-License-Identifier: Apache-2.0
1717

1818

19-
"""Unit tests for SalishSeaCast download_fvcom_results worker.
20-
"""
19+
"""Unit tests for SalishSeaCast download_fvcom_results worker."""
2120
import shlex
2221
import textwrap
2322
from pathlib import Path

tests/workers/test_download_live_ocean.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
# SPDX-License-Identifier: Apache-2.0
1717

1818

19-
"""Unit tests for SalishSeaCast download_live_ocean worker.
20-
"""
19+
"""Unit tests for SalishSeaCast download_live_ocean worker."""
2120
import grp
2221
import logging
2322
import os

tests/workers/test_download_results.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
# SPDX-License-Identifier: Apache-2.0
1717

1818

19-
"""Unit tests for SalishSeaCast download_results worker.
20-
"""
19+
"""Unit tests for SalishSeaCast download_results worker."""
2120
import logging
2221
import shlex
2322
import textwrap

tests/workers/test_download_weather.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
# SPDX-License-Identifier: Apache-2.0
1717

1818

19-
"""Unit tests for SalishSeaCast download_weather worker.
20-
"""
19+
"""Unit tests for SalishSeaCast download_weather worker."""
2120
import logging
2221
import textwrap
2322
from pathlib import Path

tests/workers/test_download_wwatch3_results.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
# SPDX-License-Identifier: Apache-2.0
1717

1818

19-
"""Unit tests for SalishSeaCast system download_wwatch3_results worker.
20-
"""
19+
"""Unit tests for SalishSeaCast system download_wwatch3_results worker."""
2120
from unittest.mock import Mock, patch
2221

2322
import arrow

tests/workers/test_get_onc_ctd.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
# SPDX-License-Identifier: Apache-2.0
1717

1818

19-
"""Unit tests for SalishSeaCast get_onc_ctd worker.
20-
"""
19+
"""Unit tests for SalishSeaCast get_onc_ctd worker."""
2120
import logging
2221
from types import SimpleNamespace
2322

tests/workers/test_get_onc_ferry.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
# SPDX-License-Identifier: Apache-2.0
1717

1818

19-
"""Unit tests for SalishSeaCast get_onc_ferry worker.
20-
"""
19+
"""Unit tests for SalishSeaCast get_onc_ferry worker."""
2120
import logging
2221
from types import SimpleNamespace
2322

tests/workers/test_get_vfpa_hadcp.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
# SPDX-License-Identifier: Apache-2.0
1717

1818

19-
"""Unit tests for SalishSeaCast get_vfpa_hadcp worker.
20-
"""
19+
"""Unit tests for SalishSeaCast get_vfpa_hadcp worker."""
2120
import logging
2221
import os
2322
import textwrap

tests/workers/test_grib_to_netcdf.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
# SPDX-License-Identifier: Apache-2.0
1717

1818

19-
"""Unit tests for SalishSeaCast grib_to_netcdf worker.
20-
"""
19+
"""Unit tests for SalishSeaCast grib_to_netcdf worker."""
2120
import logging
2221
import textwrap
2322
from pathlib import Path

tests/workers/test_launch_remote_worker.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
# SPDX-License-Identifier: Apache-2.0
1717

1818

19-
"""Unit tests for SalishSeaCast launch_remote_worker worker.
20-
"""
19+
"""Unit tests for SalishSeaCast launch_remote_worker worker."""
2120
from types import SimpleNamespace
2221
from unittest.mock import Mock, patch
2322

tests/workers/test_make_CHS_currents_file.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
# SPDX-License-Identifier: Apache-2.0
1717

1818

19-
"""Unit tests for SalishSeaCast make_CHS_currents_file worker.
20-
"""
19+
"""Unit tests for SalishSeaCast make_CHS_currents_file worker."""
2120
import logging
2221
import textwrap
2322
from pathlib import Path

tests/workers/test_make_averaged_dataset.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
# SPDX-License-Identifier: Apache-2.0
1717

1818

19-
"""Unit tests for SalishSeaCast make_averaged_dataset worker.
20-
"""
19+
"""Unit tests for SalishSeaCast make_averaged_dataset worker."""
2120
import logging
2221
import os
2322
import textwrap

tests/workers/test_make_feeds.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
# SPDX-License-Identifier: Apache-2.0
1717

1818

19-
"""Unit tests for SalishSeaCast make_feeds worker.
20-
"""
19+
"""Unit tests for SalishSeaCast make_feeds worker."""
2120
import datetime
2221
import os
2322
import textwrap

tests/workers/test_make_forcing_links.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
# SPDX-License-Identifier: Apache-2.0
1717

1818

19-
"""Unit tests for SalishSeaCast make_forcing_links worker.
20-
"""
19+
"""Unit tests for SalishSeaCast make_forcing_links worker."""
2120
import logging
2221
import os
2322
import textwrap

tests/workers/test_make_fvcom_rivers_forcing.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
# SPDX-License-Identifier: Apache-2.0
1717

1818

19-
"""Unit tests for SalishSeaCast make_fvcom_rivers_forcing worker.
20-
"""
19+
"""Unit tests for SalishSeaCast make_fvcom_rivers_forcing worker."""
2120
from pathlib import Path
2221
from types import SimpleNamespace
2322
from unittest.mock import Mock, patch

tests/workers/test_make_live_ocean_files.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
# SPDX-License-Identifier: Apache-2.0
1717

1818

19-
"""Unit tests for SalishSeaCast make_live_ocean_files worker.
20-
"""
19+
"""Unit tests for SalishSeaCast make_live_ocean_files worker."""
2120
import logging
2221
import textwrap
2322
from pathlib import Path

tests/workers/test_make_plots.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
# SPDX-License-Identifier: Apache-2.0
1717

1818

19-
"""Unit tests for SalishSeaCast make_plots worker.
20-
"""
19+
"""Unit tests for SalishSeaCast make_plots worker."""
2120
import logging
2221
from pathlib import Path
2322
from types import SimpleNamespace

tests/workers/test_make_runoff_file.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
# SPDX-License-Identifier: Apache-2.0
1717

1818

19-
"""Unit tests for SalishSeaCast make_runoff_file worker.
20-
"""
19+
"""Unit tests for SalishSeaCast make_runoff_file worker."""
2120
from pathlib import Path
2221
from types import SimpleNamespace
2322
from unittest.mock import Mock, patch

tests/workers/test_make_ssh_file.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
# SPDX-License-Identifier: Apache-2.0
1717

1818

19-
"""Unit tests for SalishSeaCast make_ssh_file worker.
20-
"""
19+
"""Unit tests for SalishSeaCast make_ssh_file worker."""
2120
import logging
2221
import os
2322
import textwrap

tests/workers/test_make_surface_current_tiles.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
# SPDX-License-Identifier: Apache-2.0
1717

1818

19-
"""Unit tests for SalishSeaCast make_surface_current_tiles worker.
20-
"""
19+
"""Unit tests for SalishSeaCast make_surface_current_tiles worker."""
2120
import logging
2221
from pathlib import Path
2322
import textwrap

tests/workers/test_make_turbidity_file.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
# SPDX-License-Identifier: Apache-2.0
1717

1818

19-
"""Unit tests for SalishSeaCast make_turbidity_file worker.
20-
"""
19+
"""Unit tests for SalishSeaCast make_turbidity_file worker."""
2120
from types import SimpleNamespace
2221
from unittest.mock import Mock, patch
2322

0 commit comments

Comments
 (0)