Skip to content

Commit aa2bfa9

Browse files
[pre-commit.ci] pre-commit autoupdate (#5086)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/pre-commit/pre-commit-hooks: v4.3.0 → v4.4.0](pre-commit/pre-commit-hooks@v4.3.0...v4.4.0) - [github.com/PyCQA/flake8: 5.0.4 → 6.0.0](PyCQA/flake8@5.0.4...6.0.0) * Fix plot_atlantic_profiles Flake8 E741 ambiguous variable name. (#5087) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Martin Yeo <40734014+trexfeathers@users.noreply.github.com>
1 parent 60e293c commit aa2bfa9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ minimum_pre_commit_version: 1.21.0
1313

1414
repos:
1515
- repo: https://github.com/pre-commit/pre-commit-hooks
16-
rev: v4.3.0
16+
rev: v4.4.0
1717
hooks:
1818
# Prevent giant files from being committed.
1919
- id: check-added-large-files
@@ -36,7 +36,7 @@ repos:
3636
args: [--config=./pyproject.toml, .]
3737

3838
- repo: https://github.com/PyCQA/flake8
39-
rev: 5.0.4
39+
rev: 6.0.0
4040
hooks:
4141
- id: flake8
4242
types: [file, python]

docs/gallery_code/oceanography/plot_atlantic_profiles.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def main():
3434
# the southern portion of the domain, and limit the depth of the profile
3535
# to 1000m.
3636
lon_cons = iris.Constraint(longitude=330.5)
37-
lat_cons = iris.Constraint(latitude=lambda l: -10 < l < -9)
37+
lat_cons = iris.Constraint(latitude=lambda lat: -10 < lat < -9)
3838
depth_cons = iris.Constraint(depth=lambda d: d <= 1000)
3939
theta_1000m = theta.extract(depth_cons & lon_cons & lat_cons)
4040
salinity_1000m = salinity.extract(depth_cons & lon_cons & lat_cons)

0 commit comments

Comments
 (0)