From 489d0129348226a7b8401f8cf11c036d6577f3da Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 16 Mar 2026 17:11:38 +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: - https://github.com/psf/black → https://github.com/psf/black-pre-commit-mirror - [github.com/psf/black-pre-commit-mirror: 23.10.1 → 26.3.1](https://github.com/psf/black-pre-commit-mirror/compare/23.10.1...26.3.1) - [github.com/PyCQA/flake8: 6.1.0 → 7.3.0](https://github.com/PyCQA/flake8/compare/6.1.0...7.3.0) - [github.com/asottile/pyupgrade: v3.15.0 → v3.21.2](https://github.com/asottile/pyupgrade/compare/v3.15.0...v3.21.2) --- .pre-commit-config.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2891a76..1b832cd 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,14 +1,14 @@ repos: - - repo: https://github.com/psf/black - rev: 23.10.1 + - repo: https://github.com/psf/black-pre-commit-mirror + rev: 26.3.1 hooks: - id: black - repo: https://github.com/PyCQA/flake8 - rev: "6.1.0" + rev: "7.3.0" hooks: - id: flake8 - repo: https://github.com/asottile/pyupgrade - rev: v3.15.0 + rev: v3.21.2 hooks: - id: pyupgrade args: [--py36-plus] From 0bfc4e0590bb06cc20b353beabd9c53b3738fd86 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 16 Mar 2026 17:12:39 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- more/webassets/tests/test_webassets.py | 30 +++++++++----------------- 1 file changed, 10 insertions(+), 20 deletions(-) diff --git a/more/webassets/tests/test_webassets.py b/more/webassets/tests/test_webassets.py index 7389d63..1eb521f 100644 --- a/more/webassets/tests/test_webassets.py +++ b/more/webassets/tests/test_webassets.py @@ -17,47 +17,37 @@ def prepare_fixtures(directory): # if those javascripts are changed, the tests below need to be updated # with the correct md5 hashes with open(os.path.join(directory, "common", "jquery.js"), "w") as f: - f.write( - """ + f.write(""" /* fake jquery */ var $ = function(){}; - """ - ) + """) with open(os.path.join(directory, "common", "underscore.js"), "w") as f: - f.write( - """ + f.write(""" /* fake underscore */ var _ = function(){}; - """ - ) + """) with open(os.path.join(directory, "theme", "main.scss"), "w") as f: - f.write( - """ + f.write(""" body { a { color: blue; } } - """ - ) + """) with open(os.path.join(directory, "theme", "other.css"), "w") as f: - f.write( - """ + f.write(""" h1 { font-size: 2rem; } - """ - ) + """) with open(os.path.join(directory, "common", "extra.js"), "w") as f: - f.write( - """ + f.write(""" $(document).ready(function(){}); - """ - ) + """) def spawn_test_app(tempdir):