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
10 changes: 5 additions & 5 deletions .github/workflows/ci-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,14 @@ jobs:
echo "LOCK_FILE=requirements/locks/py$(echo ${{ matrix.python-version }} | tr -d '.')-linux-64.lock" >> ${GITHUB_ENV}

- name: "data cache"
uses: ./.github/workflows/composite/iris-data-cache
uses: $/.github/workflows/composite/iris-data-cache
with:
cache_build: 6
env_name: ${{ env.ENV_NAME }}
version: ${{ env.IRIS_TEST_DATA_VERSION }}

- name: "conda package cache"
uses: ./.github/workflows/composite/conda-pkg-cache
uses: $/.github/workflows/composite/conda-pkg-cache
with:
cache_build: 6
cache_period: ${{ env.CACHE_PERIOD }}
Expand All @@ -95,7 +95,7 @@ jobs:
auto-update-conda: false

- name: "conda environment cache"
uses: ./.github/workflows/composite/conda-env-cache
uses: $/.github/workflows/composite/conda-env-cache
with:
cache_build: 6
cache_period: ${{ env.CACHE_PERIOD }}
Expand All @@ -108,14 +108,14 @@ jobs:
conda list

- name: "cartopy cache"
uses: ./.github/workflows/composite/cartopy-cache
uses: $/.github/workflows/composite/cartopy-cache
with:
cache_build: 6
cache_period: ${{ env.CACHE_PERIOD }}
env_name: ${{ env.ENV_NAME }}

- name: "nox cache"
uses: ./.github/workflows/composite/nox-cache
uses: $/.github/workflows/composite/nox-cache
with:
cache_build: 6
env_name: ${{ env.ENV_NAME }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ jobs:
echo "LOCK_FILE=requirements/locks/py$(echo ${{ matrix.python-version }} | tr -d '.')-linux-64.lock" >> ${GITHUB_ENV}

- name: "conda package cache"
uses: ./.github/workflows/composite/conda-pkg-cache
uses: $/.github/workflows/composite/conda-pkg-cache
with:
cache_build: 0
cache_period: ${{ env.CACHE_PERIOD }}
Expand All @@ -96,15 +96,15 @@ jobs:
use-only-tar-bz2: true

- name: "conda environment cache"
uses: ./.github/workflows/composite/conda-env-cache
uses: $/.github/workflows/composite/conda-env-cache
with:
cache_build: 0
cache_period: ${{ env.CACHE_PERIOD }}
env_name: ${{ env.ENV_NAME }}
install_packages: "nox pip"

- name: "nox cache"
uses: ./.github/workflows/composite/nox-cache
uses: $/.github/workflows/composite/nox-cache
with:
cache_build: 1
env_name: ${{ env.ENV_NAME }}
Expand Down
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,14 @@ repos:
types: [file, rst]

- repo: https://github.com/codespell-project/codespell
rev: "v2.4.2"
rev: "v2.4.3"
hooks:
- id: codespell
types_or: [asciidoc, python, markdown, rst]
additional_dependencies: [tomli]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v2.1.0'
rev: 'v2.3.1'
hooks:
- id: mypy
additional_dependencies:
Expand All @@ -87,7 +87,7 @@ repos:
types: [file, python]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.15.20"
rev: "v0.16.6"
hooks:
- id: ruff-check
types: [file, python]
Expand All @@ -102,19 +102,19 @@ repos:
types: [file, python]

- repo: https://github.com/scientific-python/cookie
rev: 2026.06.18
rev: 2026.08.14
hooks:
- id: sp-repo-review
additional_dependencies: ["repo-review[cli]"]
args: ["--show=errskip"]

- repo: https://github.com/abravalheri/validate-pyproject
# More exhaustive than Ruff RUF200.
rev: "v0.25"
rev: "0.26"
hooks:
- id: validate-pyproject

- repo: https://github.com/zizmorcore/zizmor-pre-commit
rev: v1.26.1
rev: v1.30.0
hooks:
- id: zizmor
4 changes: 4 additions & 0 deletions docs/gallery_code/general/plot_SOI_filtering.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright Iris contributors
#
# This file is part of Iris and is released under the BSD license.
# See LICENSE in the root of the repository for full licensing details.
"""
Applying a Filter to a Time-Series
==================================
Expand Down
4 changes: 4 additions & 0 deletions docs/gallery_code/general/plot_anomaly_log_colouring.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright Iris contributors
#
# This file is part of Iris and is released under the BSD license.
# See LICENSE in the root of the repository for full licensing details.
"""
Colouring Anomaly Data With Logarithmic Scaling
===============================================
Expand Down
4 changes: 4 additions & 0 deletions docs/gallery_code/general/plot_coriolis.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright Iris contributors
#
# This file is part of Iris and is released under the BSD license.
# See LICENSE in the root of the repository for full licensing details.
"""
Deriving the Coriolis Frequency Over the Globe
==============================================
Expand Down
4 changes: 4 additions & 0 deletions docs/gallery_code/general/plot_cross_section.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright Iris contributors
#
# This file is part of Iris and is released under the BSD license.
# See LICENSE in the root of the repository for full licensing details.
"""
Cross Section Plots
===================
Expand Down
4 changes: 4 additions & 0 deletions docs/gallery_code/general/plot_custom_aggregation.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright Iris contributors
#
# This file is part of Iris and is released under the BSD license.
# See LICENSE in the root of the repository for full licensing details.
"""
Calculating a Custom Statistic
==============================
Expand Down
4 changes: 4 additions & 0 deletions docs/gallery_code/general/plot_custom_file_loading.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright Iris contributors
#
# This file is part of Iris and is released under the BSD license.
# See LICENSE in the root of the repository for full licensing details.
"""
Loading a Cube From a Custom File Format
========================================
Expand Down
4 changes: 4 additions & 0 deletions docs/gallery_code/general/plot_global_map.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright Iris contributors
#
# This file is part of Iris and is released under the BSD license.
# See LICENSE in the root of the repository for full licensing details.
"""
Quickplot of a 2D Cube on a Map
===============================
Expand Down
4 changes: 4 additions & 0 deletions docs/gallery_code/general/plot_inset.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright Iris contributors
#
# This file is part of Iris and is released under the BSD license.
# See LICENSE in the root of the repository for full licensing details.
"""
Test Data Showing Inset Plots
=============================
Expand Down
4 changes: 4 additions & 0 deletions docs/gallery_code/general/plot_lineplot_with_legend.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright Iris contributors
#
# This file is part of Iris and is released under the BSD license.
# See LICENSE in the root of the repository for full licensing details.
"""
Multi-Line Temperature Profile Plot
===================================
Expand Down
4 changes: 4 additions & 0 deletions docs/gallery_code/general/plot_polar_stereo.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright Iris contributors
#
# This file is part of Iris and is released under the BSD license.
# See LICENSE in the root of the repository for full licensing details.
"""
Example of a Polar Stereographic Plot
=====================================
Expand Down
4 changes: 4 additions & 0 deletions docs/gallery_code/general/plot_polynomial_fit.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright Iris contributors
#
# This file is part of Iris and is released under the BSD license.
# See LICENSE in the root of the repository for full licensing details.
"""
Fitting a Polynomial
====================
Expand Down
4 changes: 4 additions & 0 deletions docs/gallery_code/general/plot_projections_and_annotations.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright Iris contributors
#
# This file is part of Iris and is released under the BSD license.
# See LICENSE in the root of the repository for full licensing details.
"""
Plotting in Different Projections
=================================
Expand Down
4 changes: 4 additions & 0 deletions docs/gallery_code/general/plot_rotated_pole_mapping.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright Iris contributors
#
# This file is part of Iris and is released under the BSD license.
# See LICENSE in the root of the repository for full licensing details.
"""
Rotated Pole Mapping
====================
Expand Down
4 changes: 4 additions & 0 deletions docs/gallery_code/general/plot_zonal_means.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright Iris contributors
#
# This file is part of Iris and is released under the BSD license.
# See LICENSE in the root of the repository for full licensing details.
"""
Zonal Mean Diagram of Air Temperature
=====================================
Expand Down
4 changes: 4 additions & 0 deletions docs/gallery_code/meteorology/plot_COP_1d.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright Iris contributors
#
# This file is part of Iris and is released under the BSD license.
# See LICENSE in the root of the repository for full licensing details.
"""
Global Average Annual Temperature Plot
======================================
Expand Down
4 changes: 4 additions & 0 deletions docs/gallery_code/meteorology/plot_COP_maps.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright Iris contributors
#
# This file is part of Iris and is released under the BSD license.
# See LICENSE in the root of the repository for full licensing details.
"""
Global Average Annual Temperature Maps
======================================
Expand Down
4 changes: 4 additions & 0 deletions docs/gallery_code/meteorology/plot_TEC.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright Iris contributors
#
# This file is part of Iris and is released under the BSD license.
# See LICENSE in the root of the repository for full licensing details.
"""
Ionosphere Space Weather
========================
Expand Down
4 changes: 4 additions & 0 deletions docs/gallery_code/meteorology/plot_deriving_phenomena.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright Iris contributors
#
# This file is part of Iris and is released under the BSD license.
# See LICENSE in the root of the repository for full licensing details.
"""
Deriving Exner Pressure and Air Temperature
===========================================
Expand Down
4 changes: 4 additions & 0 deletions docs/gallery_code/meteorology/plot_hovmoller.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright Iris contributors
#
# This file is part of Iris and is released under the BSD license.
# See LICENSE in the root of the repository for full licensing details.
"""
Hovmoller Diagram of Monthly Surface Temperature
================================================
Expand Down
4 changes: 4 additions & 0 deletions docs/gallery_code/meteorology/plot_lagged_ensemble.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright Iris contributors
#
# This file is part of Iris and is released under the BSD license.
# See LICENSE in the root of the repository for full licensing details.
"""
Seasonal Ensemble Model Plots
=============================
Expand Down
4 changes: 4 additions & 0 deletions docs/gallery_code/meteorology/plot_wind_barbs.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright Iris contributors
#
# This file is part of Iris and is released under the BSD license.
# See LICENSE in the root of the repository for full licensing details.
"""
Plotting Wind Direction Using Barbs
===================================
Expand Down
4 changes: 4 additions & 0 deletions docs/gallery_code/meteorology/plot_wind_speed.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright Iris contributors
#
# This file is part of Iris and is released under the BSD license.
# See LICENSE in the root of the repository for full licensing details.
"""
Plotting Wind Direction Using Quiver
====================================
Expand Down
4 changes: 4 additions & 0 deletions docs/gallery_code/oceanography/plot_atlantic_profiles.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright Iris contributors
#
# This file is part of Iris and is released under the BSD license.
# See LICENSE in the root of the repository for full licensing details.
"""
Oceanographic Profiles and T-S Diagrams
=======================================
Expand Down
4 changes: 4 additions & 0 deletions docs/gallery_code/oceanography/plot_load_nemo.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright Iris contributors
#
# This file is part of Iris and is released under the BSD license.
# See LICENSE in the root of the repository for full licensing details.
"""
Load a Time Series of Data From the NEMO Model
==============================================
Expand Down
4 changes: 4 additions & 0 deletions docs/gallery_code/oceanography/plot_orca_projection.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright Iris contributors
#
# This file is part of Iris and is released under the BSD license.
# See LICENSE in the root of the repository for full licensing details.
"""
Tri-Polar Grid Projected Plotting
=================================
Expand Down
6 changes: 5 additions & 1 deletion docs/src/developers_guide/documenting/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
# noqa: D104
# Copyright Iris contributors
#
# This file is part of Iris and is released under the BSD license.
# See LICENSE in the root of the repository for full licensing details.
"""Docstring examples."""
4 changes: 4 additions & 0 deletions docs/src/developers_guide/documenting/docstrings_attribute.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright Iris contributors
#
# This file is part of Iris and is released under the BSD license.
# See LICENSE in the root of the repository for full licensing details.
"""Docstring attribute example."""


Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright Iris contributors
#
# This file is part of Iris and is released under the BSD license.
# See LICENSE in the root of the repository for full licensing details.
"""Docstring routine example."""


Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright Iris contributors
#
# This file is part of Iris and is released under the BSD license.
# See LICENSE in the root of the repository for full licensing details.
"""Simple 1D plot using iris.quickplot.plot()."""

import matplotlib.pyplot as plt
Expand Down
4 changes: 4 additions & 0 deletions docs/src/user_manual/tutorial/plotting_examples/1d_simple.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright Iris contributors
#
# This file is part of Iris and is released under the BSD license.
# See LICENSE in the root of the repository for full licensing details.
"""Simple 1D plot using iris.plot.plot()."""

import matplotlib.pyplot as plt
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright Iris contributors
#
# This file is part of Iris and is released under the BSD license.
# See LICENSE in the root of the repository for full licensing details.
"""Simple 1D plot using iris.plot.plot() with a legend."""

import matplotlib.pyplot as plt
Expand Down
4 changes: 4 additions & 0 deletions docs/src/user_manual/tutorial/plotting_examples/brewer.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright Iris contributors
#
# This file is part of Iris and is released under the BSD license.
# See LICENSE in the root of the repository for full licensing details.
"""Plot a chart of all Brewer colour schemes."""

import matplotlib.pyplot as plt
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright Iris contributors
#
# This file is part of Iris and is released under the BSD license.
# See LICENSE in the root of the repository for full licensing details.
"""Cube block plot using using iris.plot.pcolormesh()."""

import matplotlib.pyplot as plt
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright Iris contributors
#
# This file is part of Iris and is released under the BSD license.
# See LICENSE in the root of the repository for full licensing details.
"""Adding a citation for a plot using iris.plot.citation()."""

import matplotlib.pyplot as plt
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright Iris contributors
#
# This file is part of Iris and is released under the BSD license.
# See LICENSE in the root of the repository for full licensing details.
"""Plot a cube with a Brewer colour palette using iris.quickplot.contourf()."""

import matplotlib as mpl
Expand Down
Loading
Loading