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
14 changes: 7 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,32 +7,32 @@ ci:
default_stages: [pre-commit]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
rev: v6.0.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.14.0
rev: v2.16.0
hooks:
- id: pretty-format-yaml
args: [--autofix, --indent, '4']
- id: pretty-format-toml
args: [--autofix]
- repo: https://github.com/asottile/pyupgrade
rev: v3.19.1
rev: v3.21.2
hooks:
- id: pyupgrade
- repo: https://github.com/pycqa/isort
rev: 6.0.1
rev: 7.0.0
hooks:
- id: isort
name: isort (python)
args: [--profile, black]
- repo: https://github.com/psf/black
rev: 25.1.0
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 26.1.0
hooks:
- id: black
- repo: https://github.com/pycqa/flake8
rev: 7.1.2
rev: 7.3.0
hooks:
- id: flake8
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