Skip to content

Commit 9e94cb3

Browse files
authored
Merge pull request #122 from NNPDF/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2 parents 5f7ca25 + 6006c13 commit 9e94cb3

File tree

4 files changed

+7
-13
lines changed

4 files changed

+7
-13
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ repos:
1919
- id: pycln
2020
args: [--config=pyproject.toml]
2121
- repo: https://github.com/psf/black-pre-commit-mirror
22-
rev: 25.12.0
22+
rev: 26.1.0
2323
hooks:
2424
- id: black
2525
- repo: https://github.com/asottile/blacken-docs

src/pinefarm/cli/run.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,9 @@ def subcommand(pinecard, theory_path, pdf, dry, finalize=None):
126126
if finalize is None:
127127
runner_stop = runner.preparation()
128128
if dry or runner_stop:
129-
rich.print(
130-
f"""Running in dry mode, exiting now.
129+
rich.print(f"""Running in dry mode, exiting now.
131130
The preparation step can be found in:
132-
{runner.dest}"""
133-
)
131+
{runner.dest}""")
134132
sys.exit(0)
135133

136134
###### <this part will eventually go to -prepare->

src/pinefarm/external/nnlojet/runner.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,11 @@ def preparation(self):
8181
else:
8282
runcard_path = self.dest / f"{pinedata.runname}.run"
8383
rfull = generate_runcard(pinedata, "LO", runcard_path=runcard_path)
84-
rich.print(
85-
f"""
84+
rich.print(f"""
8685
Runcard written to {runcard_path}.
8786
Prepare your NNLOJET run with
8887
~$ nnlojet-run init {runcard_path}
89-
"""
90-
)
88+
""")
9189

9290
return True
9391

src/pinefarm/table.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,14 +90,12 @@ def print_table(pineappl_results, external_results, dest):
9090

9191
comparison.replace(float("inf"), 0.0, inplace=True)
9292

93-
header = inspect.cleandoc(
94-
"""
93+
header = inspect.cleandoc("""
9594
-------------------------------------------------------------------------
9695
bin PineAPPL MC sigma central min max
9796
1/100 sigma 1/1000 1/1000 1/1000
9897
-------------------------------------------------------------------------
99-
"""
100-
)
98+
""")
10199
exp_float = lambda f: f" {f:.6e}"
102100
fixed_decimals = lambda w, n: lambda f: f"{{:{w}.{n}f}}".format(f)
103101
formatters = {

0 commit comments

Comments
 (0)