From d1be7005c265361a9f778a0cac44cd466731b952 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 2 Dec 2024 20:26:48 +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/astral-sh/ruff-pre-commit: v0.7.2 → v0.8.1](https://github.com/astral-sh/ruff-pre-commit/compare/v0.7.2...v0.8.1) --- .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 2784b04..31dd2e3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,7 +12,7 @@ repos: # Run ruff to lint and format - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.7.2 + rev: v0.8.1 hooks: # Run the linter. - id: ruff From ff087c2b8b7cb97a5cb6ca12dbd5c4f2b1890e13 Mon Sep 17 00:00:00 2001 From: lkstrp Date: Thu, 12 Dec 2024 16:20:13 +0100 Subject: [PATCH 2/2] fix: pre-commit --- powerplantmatching/plot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powerplantmatching/plot.py b/powerplantmatching/plot.py index 7a10b4f..d1d77b7 100644 --- a/powerplantmatching/plot.py +++ b/powerplantmatching/plot.py @@ -304,7 +304,7 @@ def boxplot_gross_to_net(axes_style="darkgrid", **kwargs): ax2 = ax.twiny() ax2.set_xlim(ax.get_xlim()) ax2.set_xticks([i + 1 for i in range(len(dfg))]) - ax2.set_xticklabels(["$n$=%d" % (len(v)) for k, v in dfg]) + ax2.set_xticklabels([f"$n$={len(v)}" for k, v in dfg]) fig.suptitle("") return fig, ax