Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 6, 2026
commit 0d8987112edcc22c935d45c1a0901db94f3ed699
6 changes: 2 additions & 4 deletions src/pyscript/plugins/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,8 @@ def create(
raise cli.Abort("Cannot provide both an input '.py' file and '-c' option.")

if (output or command) and (not wrap):
raise cli.Abort(
"""`--output/-o`, and `--command/-c`
are meant to be used with `--wrap/-w`"""
)
raise cli.Abort("""`--output/-o`, and `--command/-c`
are meant to be used with `--wrap/-w`""")

if not app_description:
app_description = typer.prompt("App description", default="")
Expand Down
6 changes: 2 additions & 4 deletions tests/test_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,11 +234,9 @@ def check_plugin_project_files(
contents = fp.read()
contents = dedent(contents)
assert f" <h1>{plugin_name}</h1>" in contents
assert dedent(
f""" <div>
assert dedent(f""" <div>
<h2> Description </h2>
<p>{ plugin_description }</p>
</div>""" # noqa: E201, E202
)
</div>""") # noqa: E201, E202
assert f'<py-script src="./{python_file}">' in contents
assert f'<py-config src="./{config_file}">' in contents
Loading