From 3f27fd6a2352c1b10935ec9443df9712cf096d88 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 29 Jan 2024 20:12:34 -0300 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#1013) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/psf/black: 23.12.1 → 24.1.1](https://github.com/psf/black/compare/23.12.1...24.1.1) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 2 +- src/xdist/looponfail.py | 1 + src/xdist/newhooks.py | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 08955ed..6f5e749 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,7 @@ repos: - id: autoflake args: ["--in-place", "--remove-unused-variables", "--remove-all-unused-imports"] - repo: https://github.com/psf/black - rev: 23.12.1 + rev: 24.1.1 hooks: - id: black args: [--safe, --quiet, --target-version, py35] diff --git a/src/xdist/looponfail.py b/src/xdist/looponfail.py index 41a35b6..ab9ff32 100644 --- a/src/xdist/looponfail.py +++ b/src/xdist/looponfail.py @@ -6,6 +6,7 @@ processes) otherwise changes to source code can crash the controlling process which should best never happen. """ + import os from pathlib import Path from typing import Dict, Sequence diff --git a/src/xdist/newhooks.py b/src/xdist/newhooks.py index 44ea5d8..1603951 100644 --- a/src/xdist/newhooks.py +++ b/src/xdist/newhooks.py @@ -11,6 +11,7 @@ must be taken in plugins in case ``xdist`` is not installed. Please see: http://pytest.org/en/latest/writing_plugins.html#optionally-using-hooks-from-3rd-party-plugins """ + import pytest