Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -15,27 +15,27 @@ 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]
files: '\.py$'
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"]
5 changes: 4 additions & 1 deletion Parser/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
},
}


Expand Down
8 changes: 7 additions & 1 deletion tests/test_parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down