From 08d8a620407ce50069378528b114775fcdb1f7b0 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 31 May 2021 17:33:03 +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/psf/black: 21.5b1 → 21.5b2](https://github.com/psf/black/compare/21.5b1...21.5b2) - [github.com/asottile/pyupgrade: v2.16.0 → v2.19.0](https://github.com/asottile/pyupgrade/compare/v2.16.0...v2.19.0) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ecd84fb..21418d0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/psf/black - rev: 21.5b1 + rev: 21.5b2 hooks: - id: black args: [--safe, --quiet, --target-version, py35] @@ -17,7 +17,7 @@ repos: hooks: - id: flake8 - repo: https://github.com/asottile/pyupgrade - rev: v2.16.0 + rev: v2.19.0 hooks: - id: pyupgrade args: [--py3-plus] From 0c84201b40bda2c76927d5463a63394daddcc27c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 31 May 2021 19:13:25 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/xdist/looponfail.py | 2 +- src/xdist/report.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xdist/looponfail.py b/src/xdist/looponfail.py index 19b9313..5ce13a0 100644 --- a/src/xdist/looponfail.py +++ b/src/xdist/looponfail.py @@ -61,7 +61,7 @@ class RemoteControl: def trace(self, *args): if self.config.option.debug: - msg = " ".join([str(x) for x in args]) + msg = " ".join(str(x) for x in args) print("RemoteControl:", msg) def initgateway(self): diff --git a/src/xdist/report.py b/src/xdist/report.py index 8843b40..02ad30d 100644 --- a/src/xdist/report.py +++ b/src/xdist/report.py @@ -16,5 +16,5 @@ def report_collection_diff(from_collection, to_collection, from_id, to_id): "The difference is:\n" "{diff}" ).format(from_id=from_id, to_id=to_id, diff="\n".join(diff)) - msg = "\n".join([x.rstrip() for x in error_message.split("\n")]) + msg = "\n".join(x.rstrip() for x in error_message.split("\n")) return msg