Skip to content

Commit c919768

Browse files
Disable install completions (#570)
1 parent 7d254de commit c919768

File tree

6 files changed

+17
-6
lines changed

6 files changed

+17
-6
lines changed

src/usethis/_app.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
help=(
1818
"Automate Python package and project setup tasks that are otherwise "
1919
"performed manually."
20-
)
20+
),
21+
add_completion=False,
2122
)
2223
app.command(help="Add an author to the project.")(
2324
usethis._interface.author.author,

src/usethis/_interface/badge.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
)
1616
from usethis.errors import UsethisError
1717

18-
app = typer.Typer(help="Add badges to the top of the README.md file.")
18+
app = typer.Typer(
19+
help="Add badges to the top of the README.md file.", add_completion=False
20+
)
1921

2022
remove_opt = typer.Option(
2123
False, "--remove", help="Remove the badge instead of adding it."

src/usethis/_interface/browse.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
from usethis._core.browse import browse_pypi
66
from usethis.errors import UsethisError
77

8-
app = typer.Typer(help="Visit important project-related web pages.")
8+
app = typer.Typer(
9+
help="Visit important project-related web pages.", add_completion=False
10+
)
911

1012

1113
@app.command(help="Visit the PyPI project page for a package.")

src/usethis/_interface/ci.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
from usethis._core.ci import use_ci_bitbucket
77
from usethis.errors import UsethisError
88

9-
app = typer.Typer(help="Add config for Continuous Integration (CI) pipelines.")
9+
app = typer.Typer(
10+
help="Add config for Continuous Integration (CI) pipelines.", add_completion=False
11+
)
1012

1113

1214
@app.command(help="Use Bitbucket pipelines for CI.")

src/usethis/_interface/show.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
from usethis._core.show import show_name, show_sonarqube_config
77
from usethis.errors import UsethisError
88

9-
app = typer.Typer(help="Show information about the current project.")
9+
app = typer.Typer(
10+
help="Show information about the current project.", add_completion=False
11+
)
1012

1113

1214
@app.command(help="Show the name of the project")

src/usethis/_interface/tool.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919
)
2020
from usethis.errors import UsethisError
2121

22-
app = typer.Typer(help="Add and configure development tools, e.g. linters.")
22+
app = typer.Typer(
23+
help="Add and configure development tools, e.g. linters.", add_completion=False
24+
)
2325

2426
remove_opt = typer.Option(
2527
False, "--remove", help="Remove the tool instead of adding it."

0 commit comments

Comments
 (0)