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

Some kart-data-ls improvements #895

Merged
merged 2 commits into from
Jul 31, 2023
Merged

Some kart-data-ls improvements #895

merged 2 commits into from
Jul 31, 2023

Conversation

olsen232
Copy link
Collaborator

Backwards compatible at this point:

  • You need to add a flag to change kart-data-ls behaviour
  • kart-data-version is now deprecated, but still works.

See #892

Checklist:

  • Have you reviewed your own change?
  • Have you included test(s)?
  • Have you updated the changelog?

Backwards compatible at this point:
- You need to add a flag to change kart-data-ls behaviour
- kart-data-version is now deprecated, but still works.

See #892
@olsen232 olsen232 requested a review from craigds July 31, 2023 22:35
kart/data.py Outdated
repo_desc = (
"Empty repository."
if repo.head_is_unborn
else "The commit at HEAD has no datasets."
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
else "The commit at HEAD has no datasets."
else f"The commit at {refish} has no datasets."

kart/data.py Outdated
click.echo(ds_path)
if with_dataset_types:
for ds_obj in json_list:
click.echo(f"{ds_obj['path']}\t({ds_obj['type']}.v{ds_obj['version']})")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

strings inside strings are hard to read, pull this out somehow. perhaps don't use an f-string, use a .format(**ds_obj)

@olsen232 olsen232 merged commit b46ed47 into master Jul 31, 2023
@olsen232 olsen232 deleted the kart-data-ls branch July 31, 2023 23:43
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.

2 participants