From 0febefa5cc25ac926283e0a0929b753c9885f2ea 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:25 +0000 Subject: [PATCH 1/3] [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: 23.9.1 → 24.3.0](https://github.com/psf/black/compare/23.9.1...24.3.0) - [github.com/pre-commit/pre-commit-hooks: v4.4.0 → v4.5.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.4.0...v4.5.0) - [github.com/codespell-project/codespell: v2.2.5 → v2.2.6](https://github.com/codespell-project/codespell/compare/v2.2.5...v2.2.6) - [github.com/asottile/pyupgrade: v3.10.1 → v3.15.1](https://github.com/asottile/pyupgrade/compare/v3.10.1...v3.15.1) - [github.com/PyCQA/isort: 5.12.0 → 5.13.2](https://github.com/PyCQA/isort/compare/5.12.0...5.13.2) - [github.com/pycqa/flake8: 6.1.0 → 7.0.0](https://github.com/pycqa/flake8/compare/6.1.0...7.0.0) - [github.com/pycqa/bandit: 1.7.5 → 1.7.8](https://github.com/pycqa/bandit/compare/1.7.5...1.7.8) --- .pre-commit-config.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6d2e9be..3f9ac41 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,11 +2,11 @@ default_language_version: python: python3 repos: - repo: https://github.com/psf/black - rev: 23.9.1 + rev: 24.3.0 hooks: - id: black - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v4.5.0 hooks: - id: check-added-large-files - id: check-case-conflict @@ -24,21 +24,21 @@ repos: - id: sort-simple-yaml - id: trailing-whitespace - repo: https://github.com/codespell-project/codespell - rev: v2.2.5 + rev: v2.2.6 hooks: - id: codespell additional_dependencies: ["tomli"] - repo: https://github.com/asottile/pyupgrade - rev: v3.10.1 + rev: v3.15.1 hooks: - id: pyupgrade args: [--py38-plus] - repo: https://github.com/PyCQA/isort - rev: 5.12.0 + rev: 5.13.2 hooks: - id: isort - repo: https://github.com/pycqa/flake8 - rev: 6.1.0 + rev: 7.0.0 hooks: - id: flake8 additional_dependencies: @@ -47,7 +47,7 @@ repos: - flake8-debugger==4.1.2 - flake8-string-format==0.3.0 - repo: https://github.com/pycqa/bandit - rev: 1.7.5 + rev: 1.7.8 hooks: - id: bandit args: [-c, pyproject.toml] 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 2/3] [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 From be948059e95e4442426b5d9e539c0ba174e28a79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Saugat=20Pachhai=20=28=E0=A4=B8=E0=A5=8C=E0=A4=97=E0=A4=BE?= =?UTF-8?q?=E0=A4=A4=29?= Date: Mon, 25 Mar 2024 09:03:28 +0545 Subject: [PATCH 3/3] fix typo --- tests/app/test_filesystem.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/app/test_filesystem.py b/tests/app/test_filesystem.py index b493179..cb594a3 100644 --- a/tests/app/test_filesystem.py +++ b/tests/app/test_filesystem.py @@ -59,7 +59,7 @@ def test_config(tmp_dir: TmpDir): - """Should return a filesystem broker/resut config.""" + """Should return a filesystem broker/result config.""" config = _get_fs_config(str(tmp_dir), mkdir=True) assert (tmp_dir / "broker" / "control").is_dir() assert (tmp_dir / "broker" / "in").is_dir()