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 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 = {