Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
confection>=0.0.4,<0.2.0
wasabi>=0.9.1,<1.2.0
srsly>=2.4.3,<3.0.0
typer-slim>=0.3.0,<1.0.0
typer>=0.3.0,<1.0.0
cloudpathlib>=0.7.0,<1.0.0
smart-open>=5.2.1,<8.0.0
# Third party dependencies
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ install_requires =
packaging>=20.0
wasabi>=0.9.1,<1.2.0
srsly>=2.4.3,<3.0.0
typer-slim>=0.3.0,<1.0.0
typer>=0.3.0,<1.0.0
cloudpathlib>=0.7.0,<1.0.0
smart-open>=5.2.1,<8.0.0
requests>=2.13.0,<3.0.0
Expand Down
2 changes: 1 addition & 1 deletion weasel/cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
Arg = typer.Argument
Opt = typer.Option

app = typer.Typer(name=NAME, help=HELP, no_args_is_help=True, add_completion=False)
app = typer.Typer(name=NAME, help=HELP, no_args_is_help=True, add_completion=False, rich_markup_mode=None)


def _get_parent_command(ctx: typer.Context) -> str:
Expand Down
9 changes: 5 additions & 4 deletions weasel/tests/cli/test_cli_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@
runner = CliRunner()


@pytest.mark.parametrize("cmd", ["--help"])
@pytest.mark.parametrize("cmd", [None, "--help"])
def test_show_help(cmd):
"""Basic test to confirm help text appears"""
# This test used to exercise the no-args help as well but
# it no longer seems to work in typer-slim. Maybe I'm doing it wrong?
result = runner.invoke(app, [cmd])
if cmd:
result = runner.invoke(app, [cmd])
else:
result = runner.invoke(app)
for line in HELP.splitlines():
assert line in result.stdout

Expand Down
Loading