From d81c1ca301ea5ce536ce3beff830b2c1fbaa3922 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 17:51:55 +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/psf/black-pre-commit-mirror: 25.12.0 → 26.1.0](https://github.com/psf/black-pre-commit-mirror/compare/25.12.0...26.1.0) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 20cb6fa..f4a83a9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,7 +19,7 @@ repos: - id: pycln args: [--config=pyproject.toml] - repo: https://github.com/psf/black-pre-commit-mirror - rev: 25.12.0 + rev: 26.1.0 hooks: - id: black - repo: https://github.com/asottile/blacken-docs From 6006c13104e0caccd98007f02516dc38d4099c9a 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 17:52:41 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/pinefarm/cli/run.py | 6 ++---- src/pinefarm/external/nnlojet/runner.py | 6 ++---- src/pinefarm/table.py | 6 ++---- 3 files changed, 6 insertions(+), 12 deletions(-) diff --git a/src/pinefarm/cli/run.py b/src/pinefarm/cli/run.py index ddbcfd3..58feb78 100644 --- a/src/pinefarm/cli/run.py +++ b/src/pinefarm/cli/run.py @@ -126,11 +126,9 @@ def subcommand(pinecard, theory_path, pdf, dry, finalize=None): if finalize is None: runner_stop = runner.preparation() if dry or runner_stop: - rich.print( - f"""Running in dry mode, exiting now. + rich.print(f"""Running in dry mode, exiting now. The preparation step can be found in: - {runner.dest}""" - ) + {runner.dest}""") sys.exit(0) ###### diff --git a/src/pinefarm/external/nnlojet/runner.py b/src/pinefarm/external/nnlojet/runner.py index 2bb089a..70fb59a 100644 --- a/src/pinefarm/external/nnlojet/runner.py +++ b/src/pinefarm/external/nnlojet/runner.py @@ -81,13 +81,11 @@ def preparation(self): else: runcard_path = self.dest / f"{pinedata.runname}.run" rfull = generate_runcard(pinedata, "LO", runcard_path=runcard_path) - rich.print( - f""" + rich.print(f""" Runcard written to {runcard_path}. Prepare your NNLOJET run with ~$ nnlojet-run init {runcard_path} -""" - ) +""") return True diff --git a/src/pinefarm/table.py b/src/pinefarm/table.py index 5d750ed..ecd9288 100644 --- a/src/pinefarm/table.py +++ b/src/pinefarm/table.py @@ -90,14 +90,12 @@ def print_table(pineappl_results, external_results, dest): comparison.replace(float("inf"), 0.0, inplace=True) - header = inspect.cleandoc( - """ + header = inspect.cleandoc(""" ------------------------------------------------------------------------- bin PineAPPL MC sigma central min max 1/100 sigma 1/1000 1/1000 1/1000 ------------------------------------------------------------------------- - """ - ) + """) exp_float = lambda f: f" {f:.6e}" fixed_decimals = lambda w, n: lambda f: f"{{:{w}.{n}f}}".format(f) formatters = {