From 1eebeb9ed19ee1674dfc2a5fadf39ea5b364b329 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 18 Mar 2024 19:38:53 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- noxfile.py | 1 + src/dvc_task/app/__init__.py | 1 + src/dvc_task/app/filesystem.py | 1 + src/dvc_task/proc/__init__.py | 1 + src/dvc_task/proc/exceptions.py | 1 + src/dvc_task/proc/process.py | 1 + src/dvc_task/proc/tasks.py | 1 + src/dvc_task/worker/temporary.py | 1 + tests/app/test_filesystem.py | 1 + tests/proc/conftest.py | 1 + tests/proc/test_manager.py | 1 + tests/proc/test_process.py | 1 + tests/proc/test_tasks.py | 1 + tests/test_utils.py | 1 + tests/worker/test_temporary.py | 1 + 15 files changed, 15 insertions(+) diff --git a/noxfile.py b/noxfile.py index ff610f4..df34aa2 100644 --- a/noxfile.py +++ b/noxfile.py @@ -1,4 +1,5 @@ """Automation using nox.""" + import glob import os diff --git a/src/dvc_task/app/__init__.py b/src/dvc_task/app/__init__.py index c5a382e..b244ff7 100644 --- a/src/dvc_task/app/__init__.py +++ b/src/dvc_task/app/__init__.py @@ -1,4 +1,5 @@ """DVC Task app factories.""" + from .filesystem import FSApp __all__ = ["FSApp"] diff --git a/src/dvc_task/app/filesystem.py b/src/dvc_task/app/filesystem.py index a0e6c4b..742f217 100644 --- a/src/dvc_task/app/filesystem.py +++ b/src/dvc_task/app/filesystem.py @@ -1,4 +1,5 @@ """(Local) filesystem based Celery application.""" + import logging import os from datetime import datetime diff --git a/src/dvc_task/proc/__init__.py b/src/dvc_task/proc/__init__.py index c807eec..f36845f 100644 --- a/src/dvc_task/proc/__init__.py +++ b/src/dvc_task/proc/__init__.py @@ -1,4 +1,5 @@ """Process management module.""" + from .manager import ProcessManager from .process import ManagedProcess, ProcessInfo diff --git a/src/dvc_task/proc/exceptions.py b/src/dvc_task/proc/exceptions.py index a6a5c88..99959ce 100644 --- a/src/dvc_task/proc/exceptions.py +++ b/src/dvc_task/proc/exceptions.py @@ -1,4 +1,5 @@ """Process exceptions.""" + from ..exceptions import DvcTaskError diff --git a/src/dvc_task/proc/process.py b/src/dvc_task/proc/process.py index 5f20f23..a16f51a 100644 --- a/src/dvc_task/proc/process.py +++ b/src/dvc_task/proc/process.py @@ -1,4 +1,5 @@ """Managed process module.""" + import json import logging import multiprocessing as mp diff --git a/src/dvc_task/proc/tasks.py b/src/dvc_task/proc/tasks.py index b0f91de..8bec610 100644 --- a/src/dvc_task/proc/tasks.py +++ b/src/dvc_task/proc/tasks.py @@ -1,4 +1,5 @@ """Celery tasks.""" + from typing import Any, Dict from celery import shared_task diff --git a/src/dvc_task/worker/temporary.py b/src/dvc_task/worker/temporary.py index 28e4e77..9b7a3f8 100644 --- a/src/dvc_task/worker/temporary.py +++ b/src/dvc_task/worker/temporary.py @@ -1,4 +1,5 @@ """Temporary worker module.""" + import logging import os import threading diff --git a/tests/app/test_filesystem.py b/tests/app/test_filesystem.py index d8e0197..b493179 100644 --- a/tests/app/test_filesystem.py +++ b/tests/app/test_filesystem.py @@ -1,4 +1,5 @@ """Filesystem app tests.""" + import json from typing import Any, Dict, Optional diff --git a/tests/proc/conftest.py b/tests/proc/conftest.py index 9ed7ad9..644098b 100644 --- a/tests/proc/conftest.py +++ b/tests/proc/conftest.py @@ -1,4 +1,5 @@ """Process test fixtures.""" + import json import os from typing import Optional diff --git a/tests/proc/test_manager.py b/tests/proc/test_manager.py index 3aa1b37..324adaf 100644 --- a/tests/proc/test_manager.py +++ b/tests/proc/test_manager.py @@ -1,4 +1,5 @@ """Process manager tests.""" + import builtins import signal import sys diff --git a/tests/proc/test_process.py b/tests/proc/test_process.py index e0dba19..fcb0974 100644 --- a/tests/proc/test_process.py +++ b/tests/proc/test_process.py @@ -1,4 +1,5 @@ """Process tests.""" + import json import subprocess from typing import List, Union diff --git a/tests/proc/test_tasks.py b/tests/proc/test_tasks.py index 71d5be2..73e8862 100644 --- a/tests/proc/test_tasks.py +++ b/tests/proc/test_tasks.py @@ -1,4 +1,5 @@ """Process task tests.""" + from typing import Any, Dict import pytest diff --git a/tests/test_utils.py b/tests/test_utils.py index e1206b1..2242c8f 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -1,4 +1,5 @@ """Utils tests.""" + import os import pytest diff --git a/tests/worker/test_temporary.py b/tests/worker/test_temporary.py index 2e35e7b..66dd518 100644 --- a/tests/worker/test_temporary.py +++ b/tests/worker/test_temporary.py @@ -1,4 +1,5 @@ """Temporary Worker tests.""" + import sys import pytest