From e09e4c16ff284efb52f04b76db688198922654c5 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 3 Mar 2025 20:56:14 +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.8.6 → v0.9.9](https://github.com/astral-sh/ruff-pre-commit/compare/v0.8.6...v0.9.9) --- .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 aa2d9c5a..bea3ddf9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,7 +4,7 @@ ci: repos: - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.8.6 + rev: v0.9.9 hooks: # Run the linter. # TODO fix the lint issues for the Jupyter notebooks From fa72388699205af14236a5c5a9d2ad743d121c09 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 3 Mar 2025 20:56:20 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- examples/hotelling_law/tests.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/hotelling_law/tests.py b/examples/hotelling_law/tests.py index 3d5a25fe..7787fa8a 100644 --- a/examples/hotelling_law/tests.py +++ b/examples/hotelling_law/tests.py @@ -32,9 +32,9 @@ def test_decreasing_price_variance(): df_model = model.datacollector.get_model_vars_dataframe() - assert check_slope( - df_model["Price Variance"], increasing=False - ), "The price variance should decrease over time." + assert check_slope(df_model["Price Variance"], increasing=False), ( + "The price variance should decrease over time." + ) def test_constant_price_variance(): @@ -53,6 +53,6 @@ def test_constant_price_variance(): df_model = model.datacollector.get_model_vars_dataframe() - assert ( - get_slope(df_model["Price Variance"]) == 0 - ), "The price variance constant over time." + assert get_slope(df_model["Price Variance"]) == 0, ( + "The price variance constant over time." + )