We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8020bd8 commit 5d36196Copy full SHA for 5d36196
1 file changed
deep_code/cli/lint.py
@@ -0,0 +1,20 @@
1
+#!/usr/bin/env python3
2
+
3
+# Copyright (c) 2025 by Brockmann Consult GmbH
4
+# Permissions are hereby granted under the terms of the MIT License:
5
+# https://opensource.org/licenses/MIT.
6
7
+import click
8
9
+from deep_code.tools.lint import LintDataset
10
11
12
+@click.command(name="lint-dataset")
13
+@click.argument("dataset_id")
14
+def lint_dataset(dataset_id):
15
+ """Validate metadata of a Zarr dataset before publishing.
16
17
+ DATASET_ID is the ID of a Zarr dataset in the DeepESDL public or team bucket.
18
+ """
19
+ result = LintDataset(dataset_id=dataset_id).lint_dataset()
20
+ click.echo(result)
0 commit comments