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