From 0f61ba86302691ce555fa323946ce49b32465338 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 10 Nov 2025 21:31:07 +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/pre-commit/pre-commit-hooks: v4.4.0 → v6.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.4.0...v6.0.0) - [github.com/codespell-project/codespell: v2.2.5 → v2.4.1](https://github.com/codespell-project/codespell/compare/v2.2.5...v2.4.1) - [github.com/pycqa/isort: 5.12.0 → 7.0.0](https://github.com/pycqa/isort/compare/5.12.0...7.0.0) - [github.com/PyCQA/autoflake: v2.2.0 → v2.3.1](https://github.com/PyCQA/autoflake/compare/v2.2.0...v2.3.1) - [github.com/asottile/add-trailing-comma: v2.5.1 → v4.0.0](https://github.com/asottile/add-trailing-comma/compare/v2.5.1...v4.0.0) - https://github.com/psf/black → https://github.com/psf/black-pre-commit-mirror - [github.com/psf/black-pre-commit-mirror: 23.3.0 → 25.11.0](https://github.com/psf/black-pre-commit-mirror/compare/23.3.0...25.11.0) --- .pre-commit-config.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7be1c11..9157d31 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,10 +1,10 @@ -default_stages: [commit] +default_stages: [pre-commit] default_language_version: python: python3.10 repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v6.0.0 hooks: - id: check-added-large-files args: ['--maxkb=512'] @@ -15,13 +15,13 @@ repos: - id: requirements-txt-fixer - repo: https://github.com/codespell-project/codespell - rev: v2.2.5 + rev: v2.4.1 hooks: - id: codespell exclude: main.spec - repo: https://github.com/pycqa/isort - rev: 5.12.0 + rev: 7.0.0 hooks: - id: isort args: [ @@ -32,7 +32,7 @@ repos: name: isort (python) - repo: https://github.com/PyCQA/autoflake - rev: v2.2.0 + rev: v2.3.1 hooks: - id: autoflake name: autoflake @@ -48,14 +48,14 @@ repos: ] - repo: https://github.com/asottile/add-trailing-comma - rev: v2.5.1 + rev: v4.0.0 hooks: - id: add-trailing-comma args: - --py36-plus - - repo: https://github.com/psf/black - rev: 23.3.0 + - repo: https://github.com/psf/black-pre-commit-mirror + rev: 25.11.0 hooks: - id: black args: [ From 0ae356673e5da18d89df80bbb47257012e4fe8be Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 10 Nov 2025 21:31:26 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- test/TestMethods.py | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/test/TestMethods.py b/test/TestMethods.py index 66c91de..ea24437 100644 --- a/test/TestMethods.py +++ b/test/TestMethods.py @@ -102,16 +102,18 @@ def abstract_program_test(self, path, test_scopes=False): interpreter.interpret() self.assertEqual( - interpreter.GLOBAL_SCOPE - if not test_scopes - else [ - [ - scope.scope_name, - scope.scope_level, - scope.enclosing_scope.scope_name if scope.enclosing_scope else None, + ( + interpreter.GLOBAL_SCOPE + if not test_scopes + else [ + [ + scope.scope_name, + scope.scope_level, + scope.enclosing_scope.scope_name if scope.enclosing_scope else None, + ] + for scope in interpreter.semantic_analyzer.scopes ] - for scope in interpreter.semantic_analyzer.scopes - ], + ), global_scope, ) self.delete(path)