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] 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):