From e3d8805d749535c2463bf2ac1fae7c78f6a27b36 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 29 Apr 2024 23:21:15 +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: v2.2.3 → v4.6.0](https://github.com/pre-commit/pre-commit-hooks/compare/v2.2.3...v4.6.0) - [github.com/PyCQA/isort: 5.6.4 → 5.13.2](https://github.com/PyCQA/isort/compare/5.6.4...5.13.2) - https://gitlab.com/pycqa/flake8 → https://github.com/PyCQA/flake8 - [github.com/PyCQA/flake8: 8f9b4931b9a28896fb43edccb23016a7540f5b82 → 7.0.0](https://github.com/PyCQA/flake8/compare/8f9b4931b9a28896fb43edccb23016a7540f5b82...7.0.0) - [github.com/humitos/mirrors-autoflake: v1.3 → v1.1](https://github.com/humitos/mirrors-autoflake/compare/v1.3...v1.1) - [github.com/psf/black: 19.10b0 → 24.4.2](https://github.com/psf/black/compare/19.10b0...24.4.2) --- .pre-commit-config.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a5a8f15..7ac63c9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ default_language_version: python: python3.9 repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v2.2.3 + rev: v4.6.0 hooks: - id: check-merge-conflict - id: check-added-large-files @@ -15,12 +15,12 @@ repos: - id: pretty-format-json args: ["--autofix", "--allow-missing-credentials"] - repo: https://github.com/PyCQA/isort - rev: 5.6.4 + rev: 5.13.2 hooks: - id: isort args: ["--profile", "black"] - - repo: https://gitlab.com/pycqa/flake8 - rev: "8f9b4931b9a28896fb43edccb23016a7540f5b82" + - repo: https://github.com/PyCQA/flake8 + rev: "7.0.0" hooks: - id: flake8 additional_dependencies: [flake8-print] @@ -28,14 +28,14 @@ repos: args: - --select=F401,F403,F406,F821,T001,T003 - repo: https://github.com/humitos/mirrors-autoflake - rev: v1.3 + rev: v1.1 hooks: - id: autoflake files: '\.py$' exclude: '^\..*' args: ["--in-place", "--remove-all-unused-imports"] - repo: https://github.com/psf/black - rev: 19.10b0 + rev: 24.4.2 hooks: - id: black args: ["--target-version", "py38"] From 7e724c2fb286804517cbfbefa62bd7fb26e0fdff Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 29 Apr 2024 23:21:55 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- Parser/interface.py | 5 ++++- tests/test_parse.py | 8 +++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/Parser/interface.py b/Parser/interface.py index 09f95e8..bc4a0c8 100644 --- a/Parser/interface.py +++ b/Parser/interface.py @@ -57,7 +57,10 @@ def json_error(request_id, code, message=None): return { "json_prc": JSON_PRC.version_string, "id": request_id, - "error": {"code": code, "message": str(e),}, + "error": { + "code": code, + "message": str(e), + }, } diff --git a/tests/test_parse.py b/tests/test_parse.py index 993d393..6230552 100644 --- a/tests/test_parse.py +++ b/tests/test_parse.py @@ -13,7 +13,13 @@ def setUp(self): "json": "2.0", "id": 42, "method": "foo_bazBaz", - "params": [13, {"xyzzy": 666, "inky": ["pinky", "blinky", "clyde"],},], + "params": [ + 13, + { + "xyzzy": 666, + "inky": ["pinky", "blinky", "clyde"], + }, + ], } def test_from_dict(self):