Skip to content

Commit

Permalink
Fix import formatting
Browse files Browse the repository at this point in the history
Signed-off-by: Povilas Kanapickas <[email protected]>
  • Loading branch information
p12tic committed Mar 8, 2024
1 parent 16a90e2 commit b0da6f8
Show file tree
Hide file tree
Showing 11 changed files with 41 additions and 34 deletions.
2 changes: 1 addition & 1 deletion examples/hello-python/app/web.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# pylint: disable=import-error
# pylint: disable=unused-import
import os
import asyncio # noqa: F401
import os

import aioredis
from aiohttp import web
Expand Down
21 changes: 10 additions & 11 deletions podman_compose.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,20 @@
# https://docs.docker.com/compose/django/
# https://docs.docker.com/compose/wordpress/
# TODO: podman pod logs --color -n -f pod_testlogs
import sys
import os
import getpass
import argparse
import itertools
import subprocess
import re
import asyncio.subprocess
import getpass
import glob
import hashlib
import random
import itertools
import json
import glob
import asyncio.subprocess
import signal

import os
import random
import re
import shlex
import signal
import subprocess
import sys
from asyncio import Task

try:
Expand Down
10 changes: 6 additions & 4 deletions pytests/test_can_merge_build.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
# SPDX-License-Identifier: GPL-2.0

import copy
import os
import argparse
import yaml
import os
import unittest

import yaml
from parameterized import parameterized
from podman_compose import normalize_service, PodmanCompose

from podman_compose import PodmanCompose
from podman_compose import normalize_service


class TestMergeBuild(unittest.TestCase):
Expand Down
9 changes: 6 additions & 3 deletions pytests/test_can_merge_cmd_ent.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
# SPDX-License-Identifier: GPL-2.0

import argparse
import copy
import os
import argparse
import yaml
import unittest

import yaml
from parameterized import parameterized
from podman_compose import normalize_service, PodmanCompose

from podman_compose import PodmanCompose
from podman_compose import normalize_service

test_keys = ["command", "entrypoint"]

Expand Down
13 changes: 6 additions & 7 deletions pytests/test_normalize_final_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,15 @@
# pylint: disable=protected-access

import argparse
import copy
import os
import yaml
import unittest

import yaml
from parameterized import parameterized
from podman_compose import (
normalize_final,
normalize_service_final,
PodmanCompose,
)

from podman_compose import PodmanCompose
from podman_compose import normalize_final
from podman_compose import normalize_service_final

cwd = os.path.abspath(".")

Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# SPDX-License-Identifier: GPL-2.0

import os

from setuptools import setup

try:
Expand Down
3 changes: 2 additions & 1 deletion tests/test_podman_compose.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# SPDX-License-Identifier: GPL-2.0

from pathlib import Path
import os
import unittest
from pathlib import Path

from .test_utils import RunSubprocessMixin


Expand Down
6 changes: 4 additions & 2 deletions tests/test_podman_compose_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@

# pylint: disable=redefined-outer-name
import os
import unittest

from parameterized import parameterized

from .test_podman_compose import podman_compose_path
from .test_podman_compose import test_path
from .test_utils import RunSubprocessMixin
import unittest
from parameterized import parameterized


def profile_compose_file():
Expand Down
3 changes: 1 addition & 2 deletions tests/test_podman_compose_include.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# SPDX-License-Identifier: GPL-2.0

from pathlib import Path
import subprocess
import unittest
from pathlib import Path

from .test_utils import RunSubprocessMixin

Expand Down
1 change: 0 additions & 1 deletion tests/test_podman_compose_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

# pylint: disable=redefined-outer-name
import os
import time
import unittest

from .test_podman_compose import podman_compose_path
Expand Down
6 changes: 4 additions & 2 deletions tests/test_podman_compose_up_down.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@

# pylint: disable=redefined-outer-name
import os
import unittest

from parameterized import parameterized

from .test_podman_compose import podman_compose_path
from .test_podman_compose import test_path
from .test_utils import RunSubprocessMixin
from parameterized import parameterized
import unittest


def profile_compose_file():
Expand Down

0 comments on commit b0da6f8

Please sign in to comment.