From dfb6e18d7ba2f00ad533201f8a753b84b53a28d1 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 15 Jul 2024 21:32:15 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/pre-commit-hooks: v4.4.0 → v4.6.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.4.0...v4.6.0) - [github.com/psf/black: 23.7.0 → 24.4.2](https://github.com/psf/black/compare/23.7.0...24.4.2) - [github.com/PyCQA/isort: 5.12.0 → 5.13.2](https://github.com/PyCQA/isort/compare/5.12.0...5.13.2) - [github.com/codespell-project/codespell: v2.2.5 → v2.3.0](https://github.com/codespell-project/codespell/compare/v2.2.5...v2.3.0) - [github.com/astral-sh/ruff-pre-commit: v0.0.278 → v0.5.2](https://github.com/astral-sh/ruff-pre-commit/compare/v0.0.278...v0.5.2) - [github.com/executablebooks/mdformat: 0.7.16 → 0.7.17](https://github.com/executablebooks/mdformat/compare/0.7.16...0.7.17) --- .pre-commit-config.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1234a5d..41e316d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ default_language_version: python: python3 repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v4.6.0 hooks: - id: check-added-large-files - id: check-case-conflict @@ -20,25 +20,25 @@ repos: - id: sort-simple-yaml - id: trailing-whitespace - repo: https://github.com/psf/black - rev: 23.7.0 + rev: 24.4.2 hooks: - id: black - repo: https://github.com/PyCQA/isort - rev: 5.12.0 + rev: 5.13.2 hooks: - id: isort - repo: https://github.com/codespell-project/codespell - rev: v2.2.5 + rev: v2.3.0 hooks: - id: codespell additional_dependencies: ["tomli"] - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: 'v0.0.278' + rev: 'v0.5.2' hooks: - id: ruff - repo: https://github.com/executablebooks/mdformat - rev: 0.7.16 + rev: 0.7.17 hooks: - id: mdformat args: ["--wrap=80"] From f06c1d8573307b72448233cedb2016fdb0cf46e8 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 15 Jul 2024 21:32:56 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- dask4dvc/__init__.py | 1 + dask4dvc/cli/__init__.py | 1 + dask4dvc/dvc_repro.py | 6 +++++- dask4dvc/utils/dask.py | 1 + tests/conftest.py | 1 + tests/test_dask4dvc.py | 1 + tests/test_repro.py | 1 + tests/test_run.py | 1 + 8 files changed, 12 insertions(+), 1 deletion(-) diff --git a/dask4dvc/__init__.py b/dask4dvc/__init__.py index b389df3..30ead2d 100644 --- a/dask4dvc/__init__.py +++ b/dask4dvc/__init__.py @@ -1,4 +1,5 @@ """The 'dask4dvc' package.""" + import importlib.metadata import logging import sys diff --git a/dask4dvc/cli/__init__.py b/dask4dvc/cli/__init__.py index 3620503..e650fcc 100644 --- a/dask4dvc/cli/__init__.py +++ b/dask4dvc/cli/__init__.py @@ -1,4 +1,5 @@ """The 'dask4dvc' CLI.""" + from dask4dvc.cli import main __all__ = ["main"] diff --git a/dask4dvc/dvc_repro.py b/dask4dvc/dvc_repro.py index 6cbde82..720f33c 100644 --- a/dask4dvc/dvc_repro.py +++ b/dask4dvc/dvc_repro.py @@ -1,4 +1,5 @@ """Dask4DVC to DVC repo interface.""" + import dataclasses import logging import subprocess @@ -161,7 +162,10 @@ def parallel_submit( client: dask.distributed.Client, repo: dvc.repo.Repo, stages: typing.Dict[PipelineStage, str], -) -> typing.Tuple[typing.Dict[PipelineStage, dask.distributed.Future], typing.List[str],]: +) -> typing.Tuple[ + typing.Dict[PipelineStage, dask.distributed.Future], + typing.List[str], +]: """Submit experiments in parallel.""" mapping = {} queue_entries = get_all_queue_entries(repo) diff --git a/dask4dvc/utils/dask.py b/dask4dvc/utils/dask.py index 7e391ce..3bfa598 100644 --- a/dask4dvc/utils/dask.py +++ b/dask4dvc/utils/dask.py @@ -1,4 +1,5 @@ """Utils that are related to 'dask'.""" + import logging import pathlib import typing diff --git a/tests/conftest.py b/tests/conftest.py index 4ae7c28..f9577fc 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,4 +1,5 @@ """global pytest fixtures.""" + import os import pathlib import shutil diff --git a/tests/test_dask4dvc.py b/tests/test_dask4dvc.py index 876e853..a79c121 100644 --- a/tests/test_dask4dvc.py +++ b/tests/test_dask4dvc.py @@ -1,4 +1,5 @@ """Test the 'dask4dvc' package.""" + import dask4dvc diff --git a/tests/test_repro.py b/tests/test_repro.py index 5731c83..ee4ee57 100644 --- a/tests/test_repro.py +++ b/tests/test_repro.py @@ -1,4 +1,5 @@ """Test the 'dask4dvc' CLI.""" + import pathlib import random diff --git a/tests/test_run.py b/tests/test_run.py index 81e054a..9ed8901 100644 --- a/tests/test_run.py +++ b/tests/test_run.py @@ -1,4 +1,5 @@ """Test the 'dask4dvc' CLI.""" + import pathlib import random import typing