Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 5, 2024
1 parent 428c6be commit 1b80583
Show file tree
Hide file tree
Showing 35 changed files with 35 additions and 0 deletions.
1 change: 1 addition & 0 deletions zfs/replicate/cli/click.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""ZFS Replication Options."""

from enum import Enum
from typing import Any

Expand Down
1 change: 1 addition & 0 deletions zfs/replicate/cli/main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Main function zfs-replicate."""

import itertools

import click
Expand Down
1 change: 1 addition & 0 deletions zfs/replicate/compress/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"""ZFS Replication Stream Compression."""

from .command import command as command # noqa: F401 # pylint: disable=C0414
from .type import Compression as Compression # noqa: F401 # pylint: disable=C0414
1 change: 1 addition & 0 deletions zfs/replicate/compress/command.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""ZFS Replication Compression Command Mapping."""

from typing import Tuple

from .type import Compression
Expand Down
1 change: 1 addition & 0 deletions zfs/replicate/compress/type.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""ZFS Replication Stream Compression."""

from enum import Enum, auto


Expand Down
1 change: 1 addition & 0 deletions zfs/replicate/error.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""ZFS Replication Errors."""

from typing import Any

from click import ClickException
Expand Down
1 change: 1 addition & 0 deletions zfs/replicate/filesystem/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""ZFS FileSystem Operations."""

from .create import create as create # noqa: F401 # pylint: disable=C0414
from .destroy import destroy as destroy # noqa: F401 # pylint: disable=C0414
from .type import FileSystem as FileSystem # pylint: disable=C0414
Expand Down
1 change: 1 addition & 0 deletions zfs/replicate/filesystem/create.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""ZFS FileSystem creation."""

import os.path

from .. import subprocess # nosec
Expand Down
1 change: 1 addition & 0 deletions zfs/replicate/filesystem/destroy.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""ZFS FileSystem destruction."""

from .. import subprocess # nosec
from ..error import ZFSReplicateError
from .type import FileSystem
Expand Down
1 change: 1 addition & 0 deletions zfs/replicate/filesystem/list.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""ZFs FileSystem List."""

import re
from typing import List

Expand Down
1 change: 1 addition & 0 deletions zfs/replicate/filesystem/type.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""ZFS FileySystem Type."""

from dataclasses import dataclass


Expand Down
1 change: 1 addition & 0 deletions zfs/replicate/list.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Common List Functions."""

from typing import List, Sequence, Tuple, TypeVar

__all__ = ("inits", "venn")
Expand Down
1 change: 1 addition & 0 deletions zfs/replicate/optional.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Optional Functions."""

from typing import Optional, TypeVar

Value = TypeVar("Value")
Expand Down
1 change: 1 addition & 0 deletions zfs/replicate/snapshot/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""ZFS Snapshot Operations."""

from .destroy import destroy as destroy # noqa: F401 # pylint: disable=C0414
from .list import list as list # noqa: F401 # pylint: disable=C0414,W0622
from .send import send as send # noqa: F401 # pylint: disable=C0414
Expand Down
1 change: 1 addition & 0 deletions zfs/replicate/snapshot/destroy.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""ZFS Snapshot destruction."""

from .. import subprocess # nosec
from ..error import ZFSReplicateError
from .type import Snapshot
Expand Down
1 change: 1 addition & 0 deletions zfs/replicate/snapshot/list.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""ZFS Snapshot listing."""

from typing import List, Optional

from .. import subprocess # nosec
Expand Down
1 change: 1 addition & 0 deletions zfs/replicate/snapshot/send.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""ZFS Snapshot Send."""

import subprocess # nosec
from typing import Optional

Expand Down
1 change: 1 addition & 0 deletions zfs/replicate/snapshot/type.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""ZFS Snapshot Type."""

from dataclasses import dataclass
from typing import Optional

Expand Down
1 change: 1 addition & 0 deletions zfs/replicate/ssh/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"""SSH commands and types."""

from .cipher import Cipher as Cipher # noqa: F401 # pylint: disable=C0414
from .command import command as command # noqa: F401 # pylint: disable=C0414
1 change: 1 addition & 0 deletions zfs/replicate/ssh/cipher.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""SSH Cipher Type."""

from enum import Enum, auto


Expand Down
1 change: 1 addition & 0 deletions zfs/replicate/ssh/command.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""SSH Command Generator."""

from .cipher import Cipher


Expand Down
1 change: 1 addition & 0 deletions zfs/replicate/subprocess.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""subprocess wrapper."""

import shlex
import subprocess # nosec
from typing import IO, Union
Expand Down
1 change: 1 addition & 0 deletions zfs/replicate/task/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Task Functions."""

from .execute import execute as execute # noqa: F401 # pylint: disable=C0414
from .generate import generate as generate # noqa: F401 # pylint: disable=C0414
from .report import report as report # noqa: F401 # pylint: disable=C0414
1 change: 1 addition & 0 deletions zfs/replicate/task/execute.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Task Execution."""

import itertools
from typing import List, Tuple

Expand Down
1 change: 1 addition & 0 deletions zfs/replicate/task/generate.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Replication Tasks."""

from typing import Dict, List

from ..filesystem import FileSystem
Expand Down
1 change: 1 addition & 0 deletions zfs/replicate/task/report.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Task Reporting Functions."""

import itertools
from typing import List, Tuple

Expand Down
1 change: 1 addition & 0 deletions zfs/replicate/task/type.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Types for Tasks."""

from dataclasses import dataclass
from enum import Enum, auto
from typing import Optional
Expand Down
1 change: 1 addition & 0 deletions zfs_test/replicate_test/cli_test/main_test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""zfs.replicate.cli.main tests."""

from click.testing import CliRunner

from zfs.replicate.cli.main import main
Expand Down
1 change: 1 addition & 0 deletions zfs_test/replicate_test/compress_test/command_test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test compress command generation."""

import pytest

from zfs.replicate.compress.command import command
Expand Down
1 change: 1 addition & 0 deletions zfs_test/replicate_test/list_test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for zfs.replicate.list."""

from typing import List, Set

from hypothesis import given
Expand Down
1 change: 1 addition & 0 deletions zfs_test/replicate_test/optional_test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for zfs.replicate.optional."""

from hypothesis import given
from hypothesis.strategies import integers

Expand Down
1 change: 1 addition & 0 deletions zfs_test/replicate_test/snapshot_test/list_test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""zfs.replicate.snapshot tests."""

from typing import List

from hypothesis import given
Expand Down
1 change: 1 addition & 0 deletions zfs_test/replicate_test/snapshot_test/strategies.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Snapshot Hypothesis Strategies."""

import string
from typing import Any, Dict

Expand Down
1 change: 1 addition & 0 deletions zfs_test/replicate_test/snapshot_test/type_test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""zfs.replicate.snapshot.type tests."""

from zfs.replicate.filesystem.type import filesystem
from zfs.replicate.snapshot.type import Snapshot

Expand Down
1 change: 1 addition & 0 deletions zfs_test/replicate_test/task_test/generate_test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""zfs.replicate.task.generate tests."""

import itertools
import operator
from typing import List
Expand Down

0 comments on commit 1b80583

Please sign in to comment.