Skip to content

Commit

Permalink
Merge pull request #39 from ecmwf/develop
Browse files Browse the repository at this point in the history
Release 0.1.6
  • Loading branch information
gmertes authored Jan 9, 2025
2 parents 81010a6 + e0f8451 commit b887a11
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
5 changes: 2 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ repos:
- --force-single-line-imports
- --profile black
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.4
rev: v0.8.6
hooks:
- id: ruff
args:
Expand Down Expand Up @@ -69,7 +69,7 @@ repos:
hooks:
- id: pyproject-fmt
- repo: https://github.com/jshwi/docsig # Check docstrings against function sig
rev: v0.60.1
rev: v0.66.1
hooks:
- id: docsig
args:
Expand All @@ -79,6 +79,5 @@ repos:
- --check-protected # Check protected methods
- --check-class # Check class docstrings
- --disable=E113 # Disable empty docstrings
- --summary # Print a summary
ci:
autoupdate_schedule: monthly
11 changes: 9 additions & 2 deletions src/anemoi/registry/commands/experiments.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,15 @@ def _run(self, entry, args):
extras=args.archive_extra_metadata,
)
self.process_task(entry, args, "get_archive", run_number=args.run_number, platform=args.archive_platform)
self.process_task(entry, args, "remove_archive", run_number=args.run_number, platform=args.archive_platform)
self.process_task(entry, args, "archive_moved", run_number=args.run_number)
self.process_task(
entry,
args,
"remove_archive",
run_number=args.run_number,
platform=args.archive_platform,
_skip_if_not_found=True,
)
self.process_task(entry, args, "archive_moved", run_number=args.run_number, _skip_if_not_found=True)
if args.url:
print(entry.url)

Expand Down
3 changes: 2 additions & 1 deletion tests/test_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@ def _test_datasets():
# This is poluting the s3 bucket, we should have a way to clean it up automatically
run("anemoi-registry", "datasets", TMP_DATASET_PATH, "--add-location", "ewc", "--upload")

run("anemoi-registry", "update", "--catalogue-from-recipe-file", TMP_RECIPE, "--force", "--update")
if os.path.exists("/usr/local/bin/mars"):
run("anemoi-registry", "update", "--catalogue-from-recipe-file", TMP_RECIPE, "--force", "--update")
run("anemoi-registry", "update", "--zarr-file-from-catalogue", TMP_DATASET_PATH, "--force")


Expand Down

0 comments on commit b887a11

Please sign in to comment.