Skip to content

Commit 8278add

Browse files
authored
Merge pull request #349 from runpod/isort
fix: use isort to unify import ordering
2 parents acf7651 + 210f71b commit 8278add

78 files changed

Lines changed: 206 additions & 180 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

examples/endpoints/asyncio_job_request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import asyncio
66

77
import runpod
8-
from runpod import http_client, AsyncioEndpoint, AsyncioJob
8+
from runpod import AsyncioEndpoint, AsyncioJob, http_client
99

1010
asyncio.set_event_loop_policy(
1111
asyncio.WindowsSelectorEventLoopPolicy()

examples/graphql_wrapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"""
44

55
import time
6-
import runpod
76

7+
import runpod
88

99
runpod.api_key = "YOUR_RUNPOD_API_KEY"
1010

runpod/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
""" Allows runpod to be imported as a module. """
22

3-
import os
43
import logging
4+
import os
55

66
from . import serverless
77
from .api.ctl_commands import (

runpod/api/mutations/pods.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# pylint: disable=too-many-arguments, too-many-locals, too-many-branches
66

7-
from typing import Optional, List
7+
from typing import List, Optional
88

99

1010
def generate_pod_deployment_mutation(

runpod/cli/entry.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,11 @@
66

77
import click
88

9-
from .groups.project.commands import project_cli
10-
119
from .groups.config.commands import config_wizard
12-
from .groups.ssh.commands import ssh_cli
13-
from .groups.pod.commands import pod_cli
1410
from .groups.exec.commands import exec_cli
11+
from .groups.pod.commands import pod_cli
12+
from .groups.project.commands import project_cli
13+
from .groups.ssh.commands import ssh_cli
1514

1615

1716
@click.group()

runpod/cli/groups/config/commands.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
"""
44

55
import sys
6+
67
import click
78

8-
from .functions import set_credentials, check_credentials
9+
from .functions import check_credentials, set_credentials
910

1011

1112
@click.command("config", help="Configures the RunPod CLI with the user's API key.")

runpod/cli/groups/exec/helpers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""Helper functions for the runpod cli group exec command"""
22

33
import os
4+
45
import click
56

67
from runpod import get_pod

runpod/cli/groups/pod/commands.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import click
66
from prettytable import PrettyTable
77

8-
from runpod import get_pods, create_pod
8+
from runpod import create_pod, get_pods
99

1010
from ...utils import ssh_cmd
1111

runpod/cli/groups/project/commands.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@
44

55
import os
66
import sys
7+
78
import click
89
from InquirerPy import prompt as cli_select
910

1011
from runpod import get_user
11-
from .functions import create_new_project, start_project, create_project_endpoint
12+
13+
from .functions import create_new_project, create_project_endpoint, start_project
1214
from .helpers import validate_project_name
1315

1416

runpod/cli/groups/project/functions.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,26 @@
88
from datetime import datetime
99

1010
import tomlkit
11-
from tomlkit import document, comment, table, nl
11+
from tomlkit import comment, document, nl, table
1212

1313
from runpod import (
1414
__version__,
15-
get_pod,
16-
create_template,
1715
create_endpoint,
16+
create_template,
17+
get_pod,
1818
update_endpoint_template,
1919
)
20-
from runpod.cli import BASE_DOCKER_IMAGE, GPU_TYPES, ENV_VARS
20+
from runpod.cli import BASE_DOCKER_IMAGE, ENV_VARS, GPU_TYPES
2121
from runpod.cli.utils.ssh_cmd import SSHConnection
22+
23+
from ...utils.rp_sync import sync_directory
2224
from .helpers import (
23-
get_project_pod,
24-
copy_template_files,
2525
attempt_pod_launch,
26-
load_project_config,
26+
copy_template_files,
2727
get_project_endpoint,
28+
get_project_pod,
29+
load_project_config,
2830
)
29-
from ...utils.rp_sync import sync_directory
3031

3132
STARTER_TEMPLATES = os.path.join(os.path.dirname(__file__), "starter_templates")
3233

0 commit comments

Comments
 (0)