Skip to content

Commit ae0f149

Browse files
committed
template update
1 parent 6bd9ef0 commit ae0f149

File tree

4 files changed

+23
-21
lines changed

4 files changed

+23
-21
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": "c6665306749b5dd3b4ec0fdcf1cb31d18fe23511",
3+
"commit": "104191f7bf58670f65db81e04b34e7bf56bb4985",
44
"checkout": null,
55
"context": {
66
"cookiecutter": {

.github/workflows/on-push.yml

+12-12
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,17 @@ jobs:
2323
runs-on: ubuntu-latest
2424
steps:
2525
- uses: actions/checkout@v4
26-
- uses: actions/setup-python@v4
26+
- uses: actions/setup-python@v5
2727
with:
2828
python-version: 3.x
29-
- uses: pre-commit/[email protected].0
29+
- uses: pre-commit/[email protected].1
3030

3131
combine-environments:
3232
runs-on: ubuntu-latest
3333

3434
steps:
3535
- uses: actions/checkout@v4
36-
- uses: actions/setup-python@v4
36+
- uses: actions/setup-python@v5
3737
with:
3838
python-version: 3.x
3939
- name: Install conda-merge
@@ -44,7 +44,7 @@ jobs:
4444
for SUFFIX in ci integration; do
4545
conda-merge ci/environment-$SUFFIX.yml environment.yml > ci/combined-environment-$SUFFIX.yml || exit
4646
done
47-
- uses: actions/upload-artifact@v3
47+
- uses: actions/upload-artifact@v4
4848
with:
4949
name: combined-environments
5050
path: ci/combined-environment-*.yml
@@ -59,7 +59,7 @@ jobs:
5959

6060
steps:
6161
- uses: actions/checkout@v4
62-
- uses: actions/download-artifact@v3
62+
- uses: actions/download-artifact@v4
6363
with:
6464
name: combined-environments
6565
path: ci
@@ -88,7 +88,7 @@ jobs:
8888

8989
steps:
9090
- uses: actions/checkout@v4
91-
- uses: actions/download-artifact@v3
91+
- uses: actions/download-artifact@v4
9292
with:
9393
name: combined-environments
9494
path: ci
@@ -117,7 +117,7 @@ jobs:
117117

118118
steps:
119119
- uses: actions/checkout@v4
120-
- uses: actions/download-artifact@v3
120+
- uses: actions/download-artifact@v4
121121
with:
122122
name: combined-environments
123123
path: ci
@@ -156,7 +156,7 @@ jobs:
156156

157157
steps:
158158
- uses: actions/checkout@v4
159-
- uses: actions/download-artifact@v3
159+
- uses: actions/download-artifact@v4
160160
with:
161161
name: combined-environments
162162
path: ci
@@ -191,7 +191,7 @@ jobs:
191191
192192
steps:
193193
- uses: actions/checkout@v4
194-
- uses: actions/setup-python@v4
194+
- uses: actions/setup-python@v5
195195
with:
196196
python-version: '3.11'
197197
- name: Install package
@@ -208,7 +208,7 @@ jobs:
208208
python -m twine check --strict * || exit
209209
python -c "import ogc_api_processes_fastapi" || exit
210210
cd ..
211-
- uses: actions/upload-artifact@v3
211+
- uses: actions/upload-artifact@v4
212212
with:
213213
name: distribution
214214
path: dist
@@ -228,10 +228,10 @@ jobs:
228228
id-token: write # IMPORTANT: this permission is mandatory for trusted publish
229229

230230
steps:
231-
- uses: actions/download-artifact@v3
231+
- uses: actions/download-artifact@v4
232232
with:
233233
name: distribution
234234
path: dist
235-
- uses: pypa/[email protected].11
235+
- uses: pypa/[email protected].14
236236
with:
237237
verbose: true

.pre-commit-config.yaml

+4-4
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: v4.5.0
3+
rev: v4.6.0
44
hooks:
55
- id: trailing-whitespace
66
- id: end-of-file-fixer
@@ -17,7 +17,7 @@ repos:
1717
- id: blackdoc
1818
additional_dependencies: [black==23.11.0]
1919
- repo: https://github.com/astral-sh/ruff-pre-commit
20-
rev: v0.1.6
20+
rev: v0.3.5
2121
hooks:
2222
- id: ruff
2323
args: [--fix, --show-fixes]
@@ -27,13 +27,13 @@ repos:
2727
hooks:
2828
- id: mdformat
2929
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
30-
rev: v2.11.0
30+
rev: v2.13.0
3131
hooks:
3232
- id: pretty-format-yaml
3333
args: [--autofix, --preserve-quotes]
3434
- id: pretty-format-toml
3535
args: [--autofix]
3636
- repo: https://github.com/gitleaks/gitleaks
37-
rev: v8.18.1
37+
rev: v8.18.2
3838
hooks:
3939
- id: gitleaks

pyproject.toml

+6-4
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,15 @@ branch = true
3131
strict = true
3232

3333
[tool.ruff]
34+
# Same as Black.
35+
indent-width = 4
36+
line-length = 88
37+
38+
[tool.ruff.lint]
3439
ignore = [
3540
# pydocstyle: Missing Docstrings
3641
"D1"
3742
]
38-
# Same as Black.
39-
indent-width = 4
40-
line-length = 88
4143
select = [
4244
# pyflakes
4345
"F",
@@ -53,7 +55,7 @@ select = [
5355
[tool.ruff.lint.pycodestyle]
5456
max-line-length = 110
5557

56-
[tool.ruff.pydocstyle]
58+
[tool.ruff.lint.pydocstyle]
5759
convention = "numpy"
5860

5961
[tool.setuptools]

0 commit comments

Comments
 (0)