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 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",