Skip to content

Commit e689559

Browse files
[pre-commit.ci] pre-commit autoupdate (#150)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Vecko <36369090+VeckoTheGecko@users.noreply.github.com>
1 parent f24e0d5 commit e689559

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v5.0.0
3+
rev: v6.0.0
44
hooks:
55
- id: trailing-whitespace
66
- id: end-of-file-fixer
@@ -11,7 +11,7 @@ repos:
1111
types: [text]
1212
files: \.(json|ipynb)$
1313
- repo: https://github.com/astral-sh/ruff-pre-commit
14-
rev: v0.9.6
14+
rev: v0.15.7
1515
hooks:
1616
- id: ruff
1717
args: [--fix, --show-fixes]
@@ -22,6 +22,6 @@ repos:
2222
- id: ruff-format
2323
types_or: [python, jupyter]
2424
- repo: https://github.com/rbubley/mirrors-prettier # Update mirror as official mirror is deprecated
25-
rev: v3.5.1
25+
rev: v3.8.1
2626
hooks:
2727
- id: prettier

docs/paper/plotting_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def plot_ctd(ds, ax, plot_variable, vmin, vmax, axes_labels=False):
109109
var_down = _ctd_descent_only(ctd_distance, MAP_VARNAMES[plot_variable])
110110

111111
# 1d array of depth dimension (from deepest trajectory)
112-
traj_idx, obs_idx = np.where(z_down == np.nanmin(z_down))
112+
traj_idx, _ = np.where(z_down == np.nanmin(z_down))
113113
z1d = z_down.values[traj_idx[0], :]
114114

115115
# distance as 1d array

src/virtualship/cli/_plan.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1055,8 +1055,10 @@ def save_pressed(self) -> None:
10551055
self.sync_ui_waypoints() # call to ensure waypoint inputs are synced
10561056

10571057
# verify schedule
1058-
wp_lats, wp_lons = _get_waypoint_latlons(
1059-
expedition_editor.expedition.schedule.waypoints
1058+
_wp_lats, _wp_lons = (
1059+
_get_waypoint_latlons( # TODO: Remove these since they aren't used?
1060+
expedition_editor.expedition.schedule.waypoints
1061+
)
10601062
)
10611063
instruments_config = expedition_editor.expedition.instruments_config
10621064

0 commit comments

Comments
 (0)