Skip to content

Commit 59eccfa

Browse files
committed
template update
1 parent 7f80f27 commit 59eccfa

File tree

6 files changed

+39
-13
lines changed

6 files changed

+39
-13
lines changed

.cruft.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"template": "https://github.com/ecmwf-projects/cookiecutter-conda-package",
3-
"commit": "77c7df5dde1ef90c38d872967939881aa2d7be71",
3+
"commit": "c6665306749b5dd3b4ec0fdcf1cb31d18fe23511",
44
"checkout": null,
55
"context": {
66
"cookiecutter": {

.github/workflows/on-push.yml

+31-5
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ jobs:
3333

3434
steps:
3535
- uses: actions/checkout@v4
36+
- uses: actions/setup-python@v4
37+
with:
38+
python-version: 3.x
3639
- name: Install conda-merge
3740
run: |
3841
python -m pip install conda-merge
@@ -52,19 +55,24 @@ jobs:
5255
runs-on: ubuntu-latest
5356
strategy:
5457
matrix:
55-
python-version: ['3.10', '3.11']
58+
python-version: ['3.11']
5659

5760
steps:
5861
- uses: actions/checkout@v4
5962
- uses: actions/download-artifact@v3
6063
with:
6164
name: combined-environments
6265
path: ci
66+
- name: Get current date
67+
id: date
68+
run: echo "date=$(date +%Y-%m-%d)" >> "${GITHUB_OUTPUT}"
6369
- uses: mamba-org/setup-micromamba@v1
6470
with:
6571
environment-file: ci/combined-environment-ci.yml
6672
environment-name: DEVELOP
6773
cache-environment: true
74+
cache-environment-key: environment-${{ steps.date.outputs.date }}
75+
cache-downloads-key: downloads-${{ steps.date.outputs.date }}
6876
create-args: >-
6977
python=${{ matrix.python-version }}
7078
- name: Install package
@@ -84,13 +92,18 @@ jobs:
8492
with:
8593
name: combined-environments
8694
path: ci
95+
- name: Get current date
96+
id: date
97+
run: echo "date=$(date +%Y-%m-%d)" >> "${GITHUB_OUTPUT}"
8798
- uses: mamba-org/setup-micromamba@v1
8899
with:
89100
environment-file: ci/combined-environment-ci.yml
90101
environment-name: DEVELOP
91102
cache-environment: true
103+
cache-environment-key: environment-${{ steps.date.outputs.date }}
104+
cache-downloads-key: downloads-${{ steps.date.outputs.date }}
92105
create-args: >-
93-
python=3.10
106+
python=3.11
94107
- name: Install package
95108
run: |
96109
python -m pip install --no-deps -e .
@@ -108,13 +121,18 @@ jobs:
108121
with:
109122
name: combined-environments
110123
path: ci
124+
- name: Get current date
125+
id: date
126+
run: echo "date=$(date +%Y-%m-%d)" >> "${GITHUB_OUTPUT}"
111127
- uses: mamba-org/setup-micromamba@v1
112128
with:
113129
environment-file: ci/combined-environment-ci.yml
114130
environment-name: DEVELOP
115131
cache-environment: true
132+
cache-environment-key: environment-${{ steps.date.outputs.date }}
133+
cache-downloads-key: downloads-${{ steps.date.outputs.date }}
116134
create-args: >-
117-
python=3.10
135+
python=3.11
118136
- name: Install package
119137
run: |
120138
python -m pip install --no-deps -e .
@@ -131,7 +149,7 @@ jobs:
131149
strategy:
132150
matrix:
133151
include:
134-
- python-version: '3.10'
152+
- python-version: '3.11'
135153
extra: -integration
136154

137155
steps:
@@ -140,11 +158,16 @@ jobs:
140158
with:
141159
name: combined-environments
142160
path: ci
161+
- name: Get current date
162+
id: date
163+
run: echo "date=$(date +%Y-%m-%d)" >> "${GITHUB_OUTPUT}"
143164
- uses: mamba-org/setup-micromamba@v1
144165
with:
145166
environment-file: ci/combined-environment${{ matrix.extra }}.yml
146167
environment-name: DEVELOP${{ matrix.extra }}
147168
cache-environment: true
169+
cache-environment-key: environment-${{ steps.date.outputs.date }}
170+
cache-downloads-key: downloads-${{ steps.date.outputs.date }}
148171
create-args: >-
149172
python=${{ matrix.python-version }}
150173
- name: Install package
@@ -166,6 +189,9 @@ jobs:
166189
167190
steps:
168191
- uses: actions/checkout@v4
192+
- uses: actions/setup-python@v4
193+
with:
194+
python-version: '3.11'
169195
- name: Install package
170196
run: |
171197
python -m pip install --upgrade pip
@@ -204,6 +230,6 @@ jobs:
204230
with:
205231
name: distribution
206232
path: dist
207-
- uses: pypa/[email protected].10
233+
- uses: pypa/[email protected].11
208234
with:
209235
verbose: true

.pre-commit-config.yaml

+4-3
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,16 @@ repos:
88
- id: check-yaml
99
- id: check-toml
1010
- id: check-added-large-files
11+
- id: check-merge-conflict
1112
- id: debug-statements
1213
- id: mixed-line-ending
1314
- repo: https://github.com/keewis/blackdoc
1415
rev: v0.3.9
1516
hooks:
1617
- id: blackdoc
17-
additional_dependencies: [black==22.3.0]
18+
additional_dependencies: [black==23.11.0]
1819
- repo: https://github.com/astral-sh/ruff-pre-commit
19-
rev: v0.1.5
20+
rev: v0.1.6
2021
hooks:
2122
- id: ruff
2223
args: [--fix, --show-fixes]
@@ -33,6 +34,6 @@ repos:
3334
- id: pretty-format-toml
3435
args: [--autofix]
3536
- repo: https://github.com/gitleaks/gitleaks
36-
rev: v8.18.0
37+
rev: v8.18.1
3738
hooks:
3839
- id: gitleaks

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ WORKDIR /src/c3s-eqc-automatic-quality-control
44

55
COPY environment.yml /src/c3s-eqc-automatic-quality-control/
66

7-
RUN conda install -c conda-forge gcc python=3.10 \
7+
RUN conda install -c conda-forge gcc python=3.11 \
88
&& conda env update -n base -f environment.yml
99

1010
COPY . /src/c3s-eqc-automatic-quality-control

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ C3S EQC Automatic Quality Control
1111

1212
## Workflow for developers/contributors
1313

14-
For best experience create a new conda environment (e.g. DEVELOP) with Python 3.10:
14+
For best experience create a new conda environment (e.g. DEVELOP) with Python 3.11:
1515

1616
```
17-
conda create -n DEVELOP -c conda-forge python=3.10
17+
conda create -n DEVELOP -c conda-forge python=3.11
1818
conda activate DEVELOP
1919
```
2020

pyproject.toml

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ classifiers = [
99
"Operating System :: OS Independent",
1010
"Programming Language :: Python",
1111
"Programming Language :: Python :: 3",
12-
"Programming Language :: Python :: 3.10",
1312
"Programming Language :: Python :: 3.11",
1413
"Topic :: Scientific/Engineering"
1514
]

0 commit comments

Comments
 (0)