Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #123

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand All @@ -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]
Expand Down
1 change: 1 addition & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Automation using nox."""

import glob
import os

Expand Down
1 change: 1 addition & 0 deletions src/dvc_task/app/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""DVC Task app factories."""

from .filesystem import FSApp

__all__ = ["FSApp"]
1 change: 1 addition & 0 deletions src/dvc_task/app/filesystem.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""(Local) filesystem based Celery application."""

import logging
import os
from datetime import datetime
Expand Down
1 change: 1 addition & 0 deletions src/dvc_task/proc/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Process management module."""

from .manager import ProcessManager
from .process import ManagedProcess, ProcessInfo

Expand Down
1 change: 1 addition & 0 deletions src/dvc_task/proc/exceptions.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Process exceptions."""

from ..exceptions import DvcTaskError


Expand Down
1 change: 1 addition & 0 deletions src/dvc_task/proc/process.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Managed process module."""

import json
import logging
import multiprocessing as mp
Expand Down
1 change: 1 addition & 0 deletions src/dvc_task/proc/tasks.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Celery tasks."""

from typing import Any, Dict

from celery import shared_task
Expand Down
1 change: 1 addition & 0 deletions src/dvc_task/worker/temporary.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Temporary worker module."""

import logging
import os
import threading
Expand Down
3 changes: 2 additions & 1 deletion tests/app/test_filesystem.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Filesystem app tests."""

import json
from typing import Any, Dict, Optional

Expand Down Expand Up @@ -58,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()
Expand Down
1 change: 1 addition & 0 deletions tests/proc/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Process test fixtures."""

import json
import os
from typing import Optional
Expand Down
1 change: 1 addition & 0 deletions tests/proc/test_manager.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Process manager tests."""

import builtins
import signal
import sys
Expand Down
1 change: 1 addition & 0 deletions tests/proc/test_process.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Process tests."""

import json
import subprocess
from typing import List, Union
Expand Down
1 change: 1 addition & 0 deletions tests/proc/test_tasks.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Process task tests."""

from typing import Any, Dict

import pytest
Expand Down
1 change: 1 addition & 0 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Utils tests."""

import os

import pytest
Expand Down
1 change: 1 addition & 0 deletions tests/worker/test_temporary.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Temporary Worker tests."""

import sys

import pytest
Expand Down
Loading