osbuild: run isort on all files

This commit is contained in:
Simon de Vlieger 2022-08-17 11:28:27 +02:00
parent 98daf1a87d
commit ea6085fae6
174 changed files with 106 additions and 257 deletions

View file

@ -7,7 +7,6 @@ import os
from .types import PathLike
# How many bytes to read in one go. Taken from coreutils/gnulib
BLOCKSIZE = 32768

View file

@ -7,7 +7,6 @@ library.
import contextlib
__all__ = [
"suppress_oserror",
]

View file

@ -12,8 +12,8 @@ import errno
import json
import os
import socket
from typing import Any
from typing import Optional
from typing import Any, Optional
from .types import PathLike

View file

@ -20,7 +20,6 @@ import os
import platform
import threading
__all__ = [
"ioctl_get_immutable",
"ioctl_toggle_immutable",

View file

@ -15,8 +15,7 @@ import re
import shlex
import shutil
import subprocess
from typing import Dict, Any
from typing import Any, Dict
import mako.template

View file

@ -26,9 +26,8 @@ import os
import re
import struct
import sys
from collections import OrderedDict
from typing import BinaryIO, Dict, Union, List
from typing import BinaryIO, Dict, List, Union
PathLike = Union[str, bytes, os.PathLike]

View file

@ -6,7 +6,6 @@ related documentation can be found in `os-release(5)`.
import os
# The default paths where os-release is located, as per os-release(5)
DEFAULT_PATHS = [
"/etc/os-release",

View file

@ -6,8 +6,7 @@ import subprocess
import sys
import tempfile
import typing
from typing import List, Any
from typing import Any, List
from .types import PathLike

View file

@ -16,7 +16,6 @@ import shutil
import osbuild.util.linux as linux
__all__ = [
"rmtree",
]

View file

@ -3,7 +3,6 @@
import errno
import os
import subprocess
from typing import Dict, TextIO
# Extended attribute name for SELinux labels

View file

@ -1,7 +1,6 @@
"""Wrapper module for output formatting."""
import sys
from typing import Dict

View file

@ -3,7 +3,6 @@
import contextlib
import pathlib
# The default lock dir to use
LOCKDIR = "/run/osbuild/locks/udev"