From 74b051a23c551e0653d6622ba56186ed63ab47c5 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 2 Mar 2026 16:22:49 +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/PyCQA/isort: 7.0.0 → 8.0.1](https://github.com/PyCQA/isort/compare/7.0.0...8.0.1) - https://github.com/psf/black → https://github.com/psf/black-pre-commit-mirror - [github.com/psf/black-pre-commit-mirror: 25.11.0 → 26.1.0](https://github.com/psf/black-pre-commit-mirror/compare/25.11.0...26.1.0) --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ac98919..9d66e54 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,14 +13,14 @@ repos: - --all - repo: https://github.com/PyCQA/isort - rev: '7.0.0' + rev: '8.0.1' hooks: - id: isort args: - --profile=black -- repo: https://github.com/psf/black - rev: '25.11.0' +- repo: https://github.com/psf/black-pre-commit-mirror + rev: '26.1.0' hooks: - id: black args: From 221424553ebf489a7ffe881e3fd3ebb8e07bbaf4 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 2 Mar 2026 16:23:04 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/test_rules.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/test_rules.py b/tests/test_rules.py index 4c6f558..c1ae0eb 100644 --- a/tests/test_rules.py +++ b/tests/test_rules.py @@ -380,8 +380,7 @@ def user_rules(): new_local_path = tempfile.gettempdir() pyoperators.config.LOCAL_PATH = new_local_path with open(os.path.join(new_local_path, 'rules.txt'), 'w') as f: - f.write( - """ + f.write(""" d1 = 3 d2 = 'value2' # comment incorrect1 @@ -390,8 +389,7 @@ def user_rules(): # comment d3 = incorrect2 d4 = 'value4' = incorrect3 -d1 = 4""" - ) +d1 = 4""") yield