Skip to content

Commit 2467ced

Browse files
author
Will Benfold
committed
Merge main to fix whatsnew conflict
2 parents 05c1850 + 30f751a commit 2467ced

File tree

70 files changed

+3233
-3229
lines changed

Some content is hidden

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

70 files changed

+3233
-3229
lines changed

.cirrus.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,6 @@ task:
141141
only_if: ${SKIP_TEST_TASK} == ""
142142
<< : *CREDITS_TEMPLATE
143143
matrix:
144-
env:
145-
PY_VER: 3.7
146144
env:
147145
PY_VER: 3.8
148146
name: "${CIRRUS_OS}: py${PY_VER} tests"

.github/workflows/benchmark.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88

99
jobs:
1010
benchmark:
11+
if: "github.repository == 'SciTools/iris'"
1112
runs-on: ubuntu-latest
1213

1314
env:

.github/workflows/refresh-lockfiles.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ on:
2828
jobs:
2929

3030
no_clobber:
31+
if: "github.repository == 'SciTools/iris'"
3132
runs-on: ubuntu-latest
3233
steps:
3334
# check if the auto-update-lockfiles branch exists. If it does, and someone other than
@@ -64,12 +65,13 @@ jobs:
6465
# this list below should be changed when covering more python versions
6566
# TODO: generate this matrix automatically from the list of available py**.yml files
6667
# ref: https://tomasvotruba.com/blog/2020/11/16/how-to-make-dynamic-matrix-in-github-actions/
68+
if: "github.repository == 'SciTools/iris'"
6769
runs-on: ubuntu-latest
6870
needs: no_clobber
6971

7072
strategy:
7173
matrix:
72-
python: ['37', '38']
74+
python: ['38']
7375

7476
steps:
7577
- uses: actions/checkout@v2
@@ -89,6 +91,7 @@ jobs:
8991
create_pr:
9092
# once the matrix job has completed all the lock files will have been uploaded as artifacts.
9193
# Download the artifacts, add them to the repo, and create a PR.
94+
if: "github.repository == 'SciTools/iris'"
9295
runs-on: ubuntu-latest
9396
needs: gen_lockfiles
9497

.github/workflows/stale.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77

88
jobs:
99
stale:
10+
if: "github.repository == 'SciTools/iris'"
1011
runs-on: ubuntu-latest
1112
steps:
1213
- uses: actions/[email protected]

.pre-commit-config.yaml

Lines changed: 3 additions & 3 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.0.1
16+
rev: v4.1.0
1717
hooks:
1818
# Prevent giant files from being committed.
1919
- id: check-added-large-files
@@ -29,7 +29,7 @@ repos:
2929
- id: no-commit-to-branch
3030

3131
- repo: https://github.com/psf/black
32-
rev: 21.10b0
32+
rev: 21.12b0
3333
hooks:
3434
- id: black
3535
pass_filenames: false
@@ -50,7 +50,7 @@ repos:
5050
args: [--filter-files]
5151

5252
- repo: https://github.com/asottile/blacken-docs
53-
rev: v1.11.0
53+
rev: v1.12.0
5454
hooks:
5555
- id: blacken-docs
5656
types: [file, rst]

.readthedocs.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
version: 2
22

33
build:
4-
image: latest
4+
os: ubuntu-20.04
5+
tools:
6+
python: mambaforge-4.10
57

68
conda:
7-
environment: requirements/ci/readthedocs.yml
9+
environment: requirements/ci/readthedocs.yml
810

911
sphinx:
10-
configuration: docs/src/conf.py
11-
fail_on_warning: false
12+
configuration: docs/src/conf.py
13+
fail_on_warning: false
1214

1315
python:
14-
install:
15-
- method: setuptools
16-
path: .
17-
18-
formats:
19-
- htmlzip
20-
- pdf
16+
install:
17+
- method: pip
18+
path: .
19+
extra_requirements:
20+
- docs

docs/gallery_code/README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ you may start the jupyter notebook via::
2323

2424
If you wish to contribute to the gallery see the
2525
:ref:`contributing.documentation.gallery` section of the
26-
:ref:`contributing.documentation`.
26+
:ref:`contributing.documentation_full`.

docs/src/_templates/imagehash.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{% extends "!layout.html" %}
2+
3+
{% block body %}
4+
5+
<h1>Test: {{ test }}</h1>
6+
7+
8+
{% for hash, file in hashfiles %}
9+
<div>
10+
<h3>{{hash}}</h3>
11+
<img src="{{file}}" />
12+
</div>
13+
{% endfor %}
14+
15+
{% endblock %}

docs/src/conf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ def _dotv(version):
158158
"sphinx_gallery.gen_gallery",
159159
"matplotlib.sphinxext.mathmpl",
160160
"matplotlib.sphinxext.plot_directive",
161+
"image_test_output",
161162
]
162163

163164
if skip_api == "1":
@@ -208,6 +209,7 @@ def _dotv(version):
208209
# api generation configuration
209210
autodoc_member_order = "groupwise"
210211
autodoc_default_flags = ["show-inheritance"]
212+
autodoc_typehints = "none"
211213
autosummary_generate = True
212214
autosummary_imported_members = True
213215
autopackage_name = ["iris"]

docs/src/developers_guide/contributing_code_formatting.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,13 @@ will look similar to::
5757
.. note:: You can also run `black`_ and `flake8`_ manually. Please see the
5858
their officially documentation for more information.
5959

60+
Type Hinting
61+
------------
62+
Iris is gradually adding
63+
`type hints <https://docs.python.org/3/library/typing.html>`_ into the
64+
codebase. The reviewer will look for type hints in a pull request; if you're
65+
not confident with these, feel free to work together with the reviewer to
66+
add/improve them.
67+
6068

6169
.. _pre-commit: https://pre-commit.com/

0 commit comments

Comments
 (0)