Skip to content

Commit

Permalink
Merge pull request #3212 from valohai/ruff-i
Browse files Browse the repository at this point in the history
  • Loading branch information
milas authored Mar 29, 2024
2 parents 4c6437d + 1818712 commit 336e65f
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 11 deletions.
5 changes: 3 additions & 2 deletions docker/context/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
import os

from docker import errors
from docker.context import Context
from docker.context.config import (

from .config import (
METAFILE,
get_current_context_name,
get_meta_dir,
write_context_name_to_docker_config,
)
from .context import Context


class ContextAPI:
Expand Down
7 changes: 4 additions & 3 deletions docker/context/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@
import os
from shutil import copyfile, rmtree

from docker.context.config import (
from docker.errors import ContextException
from docker.tls import TLSConfig

from .config import (
get_context_host,
get_meta_dir,
get_meta_file,
get_tls_dir,
)
from docker.errors import ContextException
from docker.tls import TLSConfig


class Context:
Expand Down
3 changes: 1 addition & 2 deletions docker/transport/npipeconn.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
import urllib3
import urllib3.connection

from docker.transport.basehttpadapter import BaseHTTPAdapter

from .. import constants
from .basehttpadapter import BaseHTTPAdapter
from .npipesocket import NpipeSocket

RecentlyUsedContainer = urllib3._collections.RecentlyUsedContainer
Expand Down
3 changes: 1 addition & 2 deletions docker/transport/sshconn.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@
import urllib3
import urllib3.connection

from docker.transport.basehttpadapter import BaseHTTPAdapter

from .. import constants
from .basehttpadapter import BaseHTTPAdapter

RecentlyUsedContainer = urllib3._collections.RecentlyUsedContainer

Expand Down
3 changes: 1 addition & 2 deletions docker/transport/unixconn.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
import urllib3
import urllib3.connection

from docker.transport.basehttpadapter import BaseHTTPAdapter

from .. import constants
from .basehttpadapter import BaseHTTPAdapter

RecentlyUsedContainer = urllib3._collections.RecentlyUsedContainer

Expand Down

0 comments on commit 336e65f

Please sign in to comment.