Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename top-level command and add subcommand #30

Merged
merged 38 commits into from
Dec 3, 2024

Conversation

candleindark
Copy link
Member

@candleindark candleindark commented Dec 1, 2024

This PR makes the following changes

  1. Modifies the top-level command to dandisets-report-tools
  2. Puts the function of the original top-level command under the subcommand, linkml-translation
  3. Adds a subcommand named manifests to run validation and generate validation reports on manifests.
  4. Moves all definitions in cli/tools.py and cli/models.py to tools.py and models.py respectively
  5. Makes log_level an application-level option
  6. Add report output directory path as an application-level option

The definition of `pydantic_validate()` in
`tools.py` is the same
From `cli/models.py` to `models.py`
From `cli/models.py` to `models.py`
From `cli/models.py` to `models.py`
To `cli.models.DandisetLinkmlTranslationReport`
From `cli/models.py` to `models.py`
From `cli/models.py` to `models.py`
From `cli/models.py` to `models.py`
All definitions that were in `cli/models.py` have been
moved to `models.py`
From `cli/tools.py` to `tools.py`
From `cli/tools.py` to `tools.py`
To `compile_dandiset_linkml_translation_report`
From `cli/tools.py` to `tools.py`
From `cli/tools.py` to `tools.py`
From `cli/tools.py` to `tools.py`
From `cli/tools.py` to `tools.py`
From `cli/tools.py` to `tools.py`
All needed definitions in the file have been
moved to `tools.py`
`Iterable` is already imported from `collections.abc`
`JsonschemaValidationPlugin` is not declared
in `__all__` of `linkml.validator`
Without putting it under the name of `DandisetValidationReport_`. Now that naming
conflict has been removed.
@candleindark candleindark marked this pull request as ready for review December 3, 2024 20:53
@candleindark candleindark merged commit d9ac99a into dandi:main Dec 3, 2024
4 checks passed
@candleindark candleindark deleted the add-command branch December 3, 2024 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant