diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9f201d9..4629577 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,7 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.37.2 + rev: 0.37.3 hooks: - id: check-github-workflows args: [ "--verbose" ] @@ -19,11 +19,11 @@ repos: hooks: - id: tox-toml-fmt - repo: https://github.com/tox-dev/pyproject-fmt - rev: "v2.23.0" + rev: "v2.24.1" hooks: - id: pyproject-fmt - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.15.16" + rev: "v0.15.17" hooks: - id: ruff-format - id: ruff diff --git a/src/pyproject_api/_backend.py b/src/pyproject_api/_backend.py index 96a50f5..2e5f553 100644 --- a/src/pyproject_api/_backend.py +++ b/src/pyproject_api/_backend.py @@ -77,7 +77,7 @@ def run(argv): # noqa: C901, PLR0912, PLR0915 flush() # flush any output generated before try: # python 2 does not support loading from bytearray - if sys.version_info[0] == 2: # pragma: no branch # noqa: PLR2004 + if sys.version_info[0] == 2: # pragma: no branch content = content.decode() # pragma: no cover parsed_message = json.loads(content) result_file = parsed_message["result"]