From 87f6865dc1f149cdf75a1e4b0f1e1de6c7e97ce8 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 24 May 2021 17:27: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/asottile/pyupgrade: v2.16.0 → v2.18.2](https://github.com/asottile/pyupgrade/compare/v2.16.0...v2.18.2) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 52dd4b4..6824357 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,7 +12,7 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/asottile/pyupgrade - rev: v2.16.0 + rev: v2.18.2 hooks: - id: pyupgrade - repo: https://github.com/PyCQA/isort From 85db2448385e64b8d46d72a6c4ec270f85f71543 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 24 May 2021 17:27:30 +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_print.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_print.py b/tests/test_print.py index ca5dd5c..84fefc9 100644 --- a/tests/test_print.py +++ b/tests/test_print.py @@ -58,7 +58,7 @@ def test_progress_v_relative(progress_report_example): marker = "test_example.py::test_global_peace " assert marker in result_verbose_relative.outlines, out output = (i.split("\t") for i in result_verbose_relative.outlines if i.startswith("\t")) - out = sorted([(float(relative), msg) for _, relative, msg in output]) + out = sorted((float(relative), msg) for _, relative, msg in output) assert [msg for _, msg in out] == [ "attempt global peace",