Skip to content

Commit a082231

Browse files
committed
reorder imports
1 parent 34aab2d commit a082231

File tree

15 files changed

+30
-28
lines changed

15 files changed

+30
-28
lines changed

src/python_gardenlinux_lib/apt/package_repo_info.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from apt_repo import APTRepository
21
from typing import Optional
2+
from apt_repo import APTRepository
33

44

55
class GardenLinuxRepo(APTRepository):

src/python_gardenlinux_lib/apt/parse_debsource.py

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

55
from __future__ import annotations
66

7-
import re
87
from typing import TextIO
8+
import re
99

1010

1111
class Debsrc:

src/python_gardenlinux_lib/cname.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
#!/usr/bin/env python3
22

3-
from .features import parse_features
4-
3+
import argparse
4+
import re
55
from functools import reduce
66
from os.path import basename, dirname
77

8-
import argparse
9-
import re
8+
from .features import parse_features
109

1110

1211
def main():

src/python_gardenlinux_lib/features/parse_features.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
from ..constants import GL_MEDIA_TYPE_LOOKUP, GL_MEDIA_TYPES
2-
31
from glob import glob
4-
import yaml
5-
import networkx
62
import os
73
import re
84
import subprocess
95
from typing import Optional
6+
import yaml
107

8+
import networkx
119
from pygments.filter import apply_filters
1210

11+
from ..constants import GL_MEDIA_TYPE_LOOKUP, GL_MEDIA_TYPES
12+
1313

1414
def get_gardenlinux_commit(gardenlinux_root: str, limit: Optional[int] = None) -> str:
1515
"""

src/python_gardenlinux_lib/flavors/parse_flavors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
import time
1212

1313
import boto3
14-
import yaml
1514
from botocore.exceptions import ClientError
1615
from jsonschema import validate, ValidationError
16+
import yaml
1717

1818
# Create a null logger as default
1919
null_logger = logging.getLogger("gardenlinux.lib.flavors")

src/python_gardenlinux_lib/git/git.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import subprocess
21
from pathlib import Path
2+
import subprocess
33
import sys
44

55
from ..logger import LoggerSetup

src/python_gardenlinux_lib/oci/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python3
22

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

66
from pygments.lexer import default
77

src/python_gardenlinux_lib/oci/helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import re
21
import json
32
import os
3+
import re
44

55

66
def write_dict_to_json_file(input, output_path):

src/python_gardenlinux_lib/oci/registry.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import oras.oci
2121
import oras.provider
2222
import oras.utils
23-
from python_gardenlinux_lib.features.parse_features import get_oci_metadata_from_fileset
2423
import requests
2524
from oras.container import Container as OrasContainer
2625
from oras.decorator import ensure_container
@@ -31,7 +30,7 @@
3130
calculate_sha256,
3231
verify_sha256,
3332
)
34-
33+
from python_gardenlinux_lib.features.parse_features import get_oci_metadata_from_fileset
3534
from python_gardenlinux_lib.oci.defaults import (
3635
annotation_signature_key,
3736
annotation_signed_string_key,

src/python_gardenlinux_lib/version.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import re
22
import subprocess
33
from datetime import datetime, timezone
4-
import requests
54
from pathlib import Path
65

6+
import requests
7+
78
from .logger import LoggerSetup
89
from .features.parse_features import get_features
910

0 commit comments

Comments
 (0)