Skip to content

Commit 5d36196

Browse files
committed
adding lint-dataset as cli option
1 parent 8020bd8 commit 5d36196

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

deep_code/cli/lint.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)