From aa5196edeef9f772dd10dd7d382956a945f0d3de Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Tue, 11 Feb 2025 14:57:16 +0400 Subject: [PATCH] Switch to black's 2025 code style (#749) --- noxfile.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/noxfile.py b/noxfile.py index 2a8778c..400c956 100644 --- a/noxfile.py +++ b/noxfile.py @@ -58,7 +58,7 @@ TYPED_FILES = ( @nox.session(reuse_venv=True, python="3.11") def format(session): - session.install("black", "isort", "flynt") + session.install("black ~= 25.0", "isort", "flynt") session.run("python", "utils/license-headers.py", "fix", *SOURCE_FILES) session.run("flynt", *SOURCE_FILES) session.run("black", "--target-version=py39", *SOURCE_FILES) @@ -70,7 +70,7 @@ def format(session): def lint(session): # Install numpy to use its mypy plugin # https://numpy.org/devdocs/reference/typing.html#mypy-plugin - session.install("black", "flake8", "mypy", "isort", "numpy") + session.install("black ~= 25.0", "flake8", "mypy", "isort", "numpy") session.install(".") session.run("python", "utils/license-headers.py", "check", *SOURCE_FILES) session.run("black", "--check", "--target-version=py39", *SOURCE_FILES)