From cd6613a7a61a559eb512be64619c4d1b32f39998 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 2 Feb 2026 18:54:53 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/pre-commit-hooks: v5.0.0 → v6.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v5.0.0...v6.0.0) - [github.com/macisamuele/language-formatters-pre-commit-hooks: v2.14.0 → v2.16.0](https://github.com/macisamuele/language-formatters-pre-commit-hooks/compare/v2.14.0...v2.16.0) - [github.com/asottile/pyupgrade: v3.19.1 → v3.21.2](https://github.com/asottile/pyupgrade/compare/v3.19.1...v3.21.2) - [github.com/pycqa/isort: 6.0.1 → 7.0.0](https://github.com/pycqa/isort/compare/6.0.1...7.0.0) - https://github.com/psf/black → https://github.com/psf/black-pre-commit-mirror - [github.com/psf/black-pre-commit-mirror: 25.1.0 → 26.1.0](https://github.com/psf/black-pre-commit-mirror/compare/25.1.0...26.1.0) - [github.com/pycqa/flake8: 7.1.2 → 7.3.0](https://github.com/pycqa/flake8/compare/7.1.2...7.3.0) --- .pre-commit-config.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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 From bd7a43dfc7fb2ea6c8ed4ff365cdff6c61ba7dfc Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 2 Feb 2026 18:55:02 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/pyscript/plugins/create.py | 6 ++---- tests/test_generator.py | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) 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_description }
-