Skip to content

Conversation

@Hoteryoung
Copy link
Collaborator

No description provided.

# Copyright 2021 Graviti. Licensed under MIT License.
#

"""plugins."""
Copy link
Contributor

Choose a reason for hiding this comment

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

Capitalized the modulestring


def _get_label_types(self) -> List[str]:
label_types = self._dataset_client.get_catalog().dumps().keys()
capitalized_types = [type_.capitalize() for type_ in label_types]
Copy link
Contributor

Choose a reason for hiding this comment

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

build a map for the label_types transfer?

_SOURCE_PATH = os.path.join(REPO_PATH, "docs", "source")
_EXAMPLES_PATH = os.path.join(_SOURCE_PATH, "examples")
_IMAGES_PATH = os.path.join(_SOURCE_PATH, "images")
_TEMPLATE_PATH = os.path.join(_EXAMPLES_PATH, "template.json")
Copy link
Contributor

Choose a reason for hiding this comment

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

it is not a good idea to put template into a json file.

self._load_delete_dataset()

def _load_top(self) -> None:
self._create_and_add_title(self._alias, self._TOPMOST_TITLE_LEVEL)
Copy link
Contributor

Choose a reason for hiding this comment

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

try to use docutils or sphinx to write the rst file

@coveralls
Copy link

Pull Request Test Coverage Report for Build 835877504

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 79.97%

Totals Coverage Status
Change from base Build 835853062: 0.0%
Covered Lines: 4276
Relevant Lines: 5347

💛 - Coveralls

@Hoteryoung Hoteryoung requested a review from Lee-000 as a code owner August 7, 2021 15:49
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.

3 participants