Merge branch 'develop' into feature/project-cli

This commit is contained in:
Ines Montani 2020-06-25 12:27:58 +02:00
commit 5d235fb767
3 changed files with 6 additions and 12 deletions

View File

@ -8,7 +8,7 @@ murmurhash>=0.28.0,<1.1.0
wasabi>=0.7.0,<1.1.0
srsly>=2.1.0,<3.0.0
catalogue>=0.0.7,<1.1.0
typer>=0.2.1,<1.0.0
typer>=0.3.0,<1.0.0
# Third party dependencies
numpy>=1.15.0
requests>=2.13.0,<3.0.0

View File

@ -47,7 +47,7 @@ install_requires =
wasabi>=0.7.0,<1.1.0
srsly>=2.1.0,<3.0.0
catalogue>=0.0.7,<1.1.0
typer>=0.2.1,<1.0.0
typer>=0.3.0,<1.0.0
# Third-party dependencies
tqdm>=4.38.0,<5.0.0
numpy>=1.15.0

View File

@ -13,16 +13,10 @@ DOCS: https://spacy.io/api/cli
app = typer.Typer(name=NAME, help=HELP)
def Arg(*args, help: Optional[str] = None, **kwargs) -> typer.Argument:
"""Wrapper for Typer's annotation to keep it short and set defaults."""
# Filter out help for now until it's officially supported
return typer.Argument(*args, **kwargs)
def Opt(*args, **kwargs) -> typer.Option:
"""Wrapper for Typer's annotation to keep it short and set defaults."""
return typer.Option(*args, show_default=True, **kwargs)
# Wrappers for Typer's annotations. Initially created to set defaults and to
# keep the names short, but not needed at the moment.
Arg = typer.Argument
Opt = typer.Option
def setup_cli() -> None: