diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 708d3f8d..b4338513 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,7 +13,7 @@ repos: hooks: - id: check-yaml - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.5.7 + rev: v0.6.2 hooks: - id: ruff args: [ --fix ] @@ -26,7 +26,7 @@ repos: args: ["--ignore", "D001"] - repo: https://github.com/pre-commit/mirrors-mypy - rev: 'v1.11.1' + rev: 'v1.11.2' hooks: - id: mypy additional_dependencies: diff --git a/testing/conftest.py b/testing/conftest.py index c5fa4cf5..a7c2eede 100644 --- a/testing/conftest.py +++ b/testing/conftest.py @@ -7,8 +7,9 @@ from typing import Generator from typing import Iterator -import execnet import pytest + +import execnet from execnet.gateway import Gateway from execnet.gateway_base import ExecModel from execnet.gateway_base import WorkerPool diff --git a/testing/test_basics.py b/testing/test_basics.py index 5ed53e97..427ded3c 100644 --- a/testing/test_basics.py +++ b/testing/test_basics.py @@ -12,8 +12,9 @@ from typing import Any from typing import Callable -import execnet import pytest + +import execnet from execnet import gateway from execnet import gateway_base from execnet import gateway_io diff --git a/testing/test_channel.py b/testing/test_channel.py index f500f117..d4712277 100644 --- a/testing/test_channel.py +++ b/testing/test_channel.py @@ -7,6 +7,7 @@ import time import pytest + from execnet.gateway import Gateway from execnet.gateway_base import Channel diff --git a/testing/test_gateway.py b/testing/test_gateway.py index 4291404e..257fd941 100644 --- a/testing/test_gateway.py +++ b/testing/test_gateway.py @@ -12,8 +12,9 @@ from textwrap import dedent from typing import Callable -import execnet import pytest + +import execnet from execnet import gateway_base from execnet import gateway_io from execnet.gateway import Gateway diff --git a/testing/test_multi.py b/testing/test_multi.py index edc93037..e1dc40d1 100644 --- a/testing/test_multi.py +++ b/testing/test_multi.py @@ -8,8 +8,9 @@ from time import sleep from typing import Callable -import execnet import pytest + +import execnet from execnet import XSpec from execnet.gateway import Gateway from execnet.gateway_base import Channel diff --git a/testing/test_rsync.py b/testing/test_rsync.py index 6f40bc44..40af7ca2 100644 --- a/testing/test_rsync.py +++ b/testing/test_rsync.py @@ -4,8 +4,9 @@ import sys import types -import execnet import pytest + +import execnet from execnet import RSync from execnet.gateway import Gateway diff --git a/testing/test_serializer.py b/testing/test_serializer.py index aff41a98..4c78f1ce 100644 --- a/testing/test_serializer.py +++ b/testing/test_serializer.py @@ -5,9 +5,10 @@ import sys from pathlib import Path -import execnet import pytest +import execnet + # We use the execnet folder in order to avoid triggering a missing apipkg. pyimportdir = os.fspath(Path(execnet.__file__).parent) diff --git a/testing/test_termination.py b/testing/test_termination.py index 44bd1a52..83f0b980 100644 --- a/testing/test_termination.py +++ b/testing/test_termination.py @@ -6,12 +6,13 @@ import sys from typing import Callable -import execnet import pytest +from test_gateway import TESTTIMEOUT + +import execnet from execnet.gateway import Gateway from execnet.gateway_base import ExecModel from execnet.gateway_base import WorkerPool -from test_gateway import TESTTIMEOUT execnetdir = pathlib.Path(execnet.__file__).parent.parent diff --git a/testing/test_threadpool.py b/testing/test_threadpool.py index 480282d9..becc401c 100644 --- a/testing/test_threadpool.py +++ b/testing/test_threadpool.py @@ -2,6 +2,7 @@ from pathlib import Path import pytest + from execnet.gateway_base import ExecModel from execnet.gateway_base import WorkerPool diff --git a/testing/test_xspec.py b/testing/test_xspec.py index 4c9ff8d6..eaf30e1d 100644 --- a/testing/test_xspec.py +++ b/testing/test_xspec.py @@ -7,8 +7,9 @@ from pathlib import Path from typing import Callable -import execnet import pytest + +import execnet from execnet import XSpec from execnet.gateway import Gateway from execnet.gateway_io import popen_args