Skip to content

Commit bd7a43d

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent cd6613a commit bd7a43d

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

src/pyscript/plugins/create.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,8 @@ def create(
5555
raise cli.Abort("Cannot provide both an input '.py' file and '-c' option.")
5656

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

6361
if not app_description:
6462
app_description = typer.prompt("App description", default="")

tests/test_generator.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -234,11 +234,9 @@ def check_plugin_project_files(
234234
contents = fp.read()
235235
contents = dedent(contents)
236236
assert f" <h1>{plugin_name}</h1>" in contents
237-
assert dedent(
238-
f""" <div>
237+
assert dedent(f""" <div>
239238
<h2> Description </h2>
240239
<p>{ plugin_description }</p>
241-
</div>""" # noqa: E201, E202
242-
)
240+
</div>""") # noqa: E201, E202
243241
assert f'<py-script src="./{python_file}">' in contents
244242
assert f'<py-config src="./{config_file}">' in contents

0 commit comments

Comments
 (0)