Skip to content

Commit 86007af

Browse files
committed
update template
1 parent 140cfc6 commit 86007af

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
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": "9627920059b31038e1bb8a978921806cb835fde7",
3+
"commit": "8a346c4ecd7ada4447ab9c224fe3a8b17a79f540",
44
"checkout": null,
55
"context": {
66
"cookiecutter": {

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ version.py
44
# Sphinx automatic generation of API
55
docs/_api/
66

7+
# Combined environments
8+
ci/combined-environment-*.yml
9+
710
# Created by https://www.toptal.com/developers/gitignore/api/python,jupyternotebooks,vim,visualstudiocode,pycharm,emacs,linux,macos,windows
811
# Edit at https://www.toptal.com/developers/gitignore?templates=python,jupyternotebooks,vim,visualstudiocode,pycharm,emacs,linux,macos,windows
912

.pre-commit-config.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ repos:
1111
- id: debug-statements
1212
- id: mixed-line-ending
1313
- repo: https://github.com/psf/black
14-
rev: 23.3.0
14+
rev: 23.7.0
1515
hooks:
1616
- id: black
1717
- repo: https://github.com/keewis/blackdoc
@@ -20,7 +20,7 @@ repos:
2020
- id: blackdoc
2121
additional_dependencies: [black==22.3.0]
2222
- repo: https://github.com/astral-sh/ruff-pre-commit
23-
rev: v0.0.277
23+
rev: v0.0.278
2424
hooks:
2525
- id: ruff
2626
args: [--fix, --show-fixes]
@@ -29,7 +29,7 @@ repos:
2929
hooks:
3030
- id: mdformat
3131
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
32-
rev: v2.9.0
32+
rev: v2.10.0
3333
hooks:
3434
- id: pretty-format-yaml
3535
args: [--autofix, --preserve-quotes]

Makefile

+3-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ type-check:
1515
python -m mypy .
1616

1717
conda-env-update:
18-
$(CONDA) env update $(CONDAFLAGS) -f ci/environment-ci.yml
19-
$(CONDA) env update $(CONDAFLAGS) -f environment.yml
18+
$(CONDA) install -y -c conda-forge conda-merge
19+
$(CONDA) run conda-merge environment.yml ci/environment-ci.yml > ci/combined-environment-ci.yml
20+
$(CONDA) env update $(CONDAFLAGS) -f ci/combined-environment-ci.yml
2021

2122
docker-build:
2223
docker build -t $(PROJECT) .

0 commit comments

Comments
 (0)