osbuild: run isort on all files
This commit is contained in:
parent
98daf1a87d
commit
ea6085fae6
174 changed files with 106 additions and 257 deletions
|
|
@ -7,7 +7,6 @@ import os
|
|||
|
||||
from .types import PathLike
|
||||
|
||||
|
||||
# How many bytes to read in one go. Taken from coreutils/gnulib
|
||||
BLOCKSIZE = 32768
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@ library.
|
|||
|
||||
import contextlib
|
||||
|
||||
|
||||
__all__ = [
|
||||
"suppress_oserror",
|
||||
]
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -20,7 +20,6 @@ import os
|
|||
import platform
|
||||
import threading
|
||||
|
||||
|
||||
__all__ = [
|
||||
"ioctl_get_immutable",
|
||||
"ioctl_toggle_immutable",
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@ import shutil
|
|||
|
||||
import osbuild.util.linux as linux
|
||||
|
||||
|
||||
__all__ = [
|
||||
"rmtree",
|
||||
]
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@
|
|||
import errno
|
||||
import os
|
||||
import subprocess
|
||||
|
||||
from typing import Dict, TextIO
|
||||
|
||||
# Extended attribute name for SELinux labels
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
"""Wrapper module for output formatting."""
|
||||
|
||||
import sys
|
||||
|
||||
from typing import Dict
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@
|
|||
import contextlib
|
||||
import pathlib
|
||||
|
||||
|
||||
# The default lock dir to use
|
||||
LOCKDIR = "/run/osbuild/locks/udev"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue