diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8f17d34..cd0d01b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 diff --git a/src/pyscript/plugins/create.py b/src/pyscript/plugins/create.py index cbc896a..9ebe22c 100644 --- a/src/pyscript/plugins/create.py +++ b/src/pyscript/plugins/create.py @@ -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="") diff --git a/tests/test_generator.py b/tests/test_generator.py index eca8e1d..806451e 100644 --- a/tests/test_generator.py +++ b/tests/test_generator.py @@ -234,11 +234,9 @@ def check_plugin_project_files( contents = fp.read() contents = dedent(contents) assert f"

{plugin_name}

" in contents - assert dedent( - f"""
+ assert dedent(f"""

Description

{ plugin_description }

-
""" # noqa: E201, E202 - ) +
""") # noqa: E201, E202 assert f'' in contents assert f'' in contents