Skip to content

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvittal committed Aug 7, 2024
1 parent 1a33173 commit 44ef794
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 23 deletions.
7 changes: 4 additions & 3 deletions hail/python/hailtop/aiotools/plan.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
from typing import List, Tuple, Optional
import asyncio
import os
from contextlib import AsyncExitStack
from typing import List, Optional, Tuple

from hailtop.aiotools import FileAndDirectoryError

from .router_fs import RouterAsyncFS
from .fs import FileListEntry, FileStatus, AsyncFS, WritableStream
from ..utils.rich_progress_bar import CopyToolProgressBar, Progress
from .fs import AsyncFS, FileListEntry, FileStatus, WritableStream
from .router_fs import RouterAsyncFS


class PlanError(ValueError):
Expand Down
12 changes: 6 additions & 6 deletions hail/python/hailtop/aiotools/sync.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
from typing import Optional
import asyncio
import os
import functools
import os
from typing import Optional

from ..utils import bounded_gather2, retry_transient_errors
from ..utils.rich_progress_bar import CopyToolProgressBar, make_listener
from .copy import GrowingSempahore
from .fs.fs import MultiPartCreate
from .fs.copier import Copier
from .fs.exceptions import UnexpectedEOFError
from .router_fs import RouterAsyncFS, AsyncFS
from ..utils import retry_transient_errors, bounded_gather2
from ..utils.rich_progress_bar import make_listener, CopyToolProgressBar
from .fs.fs import MultiPartCreate
from .router_fs import AsyncFS, RouterAsyncFS


class SyncError(ValueError):
Expand Down
3 changes: 1 addition & 2 deletions hail/python/hailtop/hailctl/__main__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import os

from typing import cast

import click
Expand All @@ -11,8 +10,8 @@
from .dataproc import cli as dataproc_cli
from .describe import describe
from .dev import cli as dev_cli
from .hdinsight import cli as hdinsight_cli
from .fs import cli as fs_cli
from .hdinsight import cli as hdinsight_cli

app = typer.Typer(
help='Manage and monitor hail deployments.',
Expand Down
10 changes: 6 additions & 4 deletions hail/python/hailtop/hailctl/fs/cli.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
from typing import Optional, List, Tuple, cast
import asyncio
import click
import sys
from typing import List, Optional, Tuple, cast

import click
import typer

from hailtop import uvloopx
from hailtop.aiotools.plan import plan, PlanError
from hailtop.aiotools.sync import sync as aiotools_sync, SyncError
from hailtop.aiotools.plan import PlanError, plan
from hailtop.aiotools.sync import SyncError
from hailtop.aiotools.sync import sync as aiotools_sync

app_without_click = typer.Typer(
name='fs',
Expand Down
16 changes: 8 additions & 8 deletions hail/python/test/hailtop/inter_cloud/test_copy.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@
import os
import secrets
import tempfile

from typing import AsyncIterator, Dict, List, Tuple

import pytest
from hailtop.utils import url_scheme
from hailtop.aiotools.plan import plan, PlanError
from hailtop.aiotools.sync import sync, SyncError
from hailtop.aiotools.router_fs import RouterAsyncFS

from hailtop.aiotools import (
Transfer,
FileAndDirectoryError,
Copier,
AsyncFS,
Copier,
FileAndDirectoryError,
FileListEntry,
Transfer,
)
from hailtop.aiotools.plan import PlanError, plan
from hailtop.aiotools.router_fs import RouterAsyncFS
from hailtop.aiotools.sync import SyncError, sync
from hailtop.utils import url_scheme

from .copy_test_specs import COPY_TEST_SPECS
from .generate_copy_test_specs import create_test_dir, create_test_file, run_test_spec
Expand Down
2 changes: 2 additions & 0 deletions hail/python/test/hailtop/inter_cloud/test_hailctl_fs_sync.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import pytest

from hailtop.utils import check_exec_output

from .test_copy import cloud_scheme
from .utils import fresh_dir


Expand Down

0 comments on commit 44ef794

Please sign in to comment.