lint fix
This commit is contained in:
parent
adbdf47ef4
commit
88434db29a
7 changed files with 8 additions and 4 deletions
|
@ -4,7 +4,6 @@ import os
|
|||
|
||||
import fs
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
file_path = os.path.realpath(__file__)
|
||||
root_path = os.path.dirname(file_path)
|
||||
|
|
|
@ -10,6 +10,5 @@ def need(command: str) -> None:
|
|||
package = "squashfs-tools"
|
||||
case _:
|
||||
package = None
|
||||
if package:
|
||||
if package not in packages:
|
||||
packages.append(package)
|
||||
if package and package not in packages:
|
||||
packages.append(package)
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import ps
|
||||
|
||||
import rwx.cmd
|
||||
|
||||
rwx.cmd.need("mksquashfs")
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import cmd
|
||||
|
||||
import ps
|
||||
|
||||
cmd.need("debootstrap")
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import cmd
|
||||
|
||||
import ps
|
||||
|
||||
cmd.need("grub-mkimage")
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
import logging
|
||||
import sys
|
||||
|
||||
|
||||
def get_file_logger(name: str) -> logging.Logger:
|
||||
formatter = logging.Formatter(
|
||||
"%(name)s: %(asctime)s | %(levelname)s | %(filename)s:%(lineno)s | %(process)d >>> %(message)s",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
from os import path
|
||||
|
||||
from sphinx.cmd.build import build_main
|
||||
|
||||
from rwx.fs import wipe
|
||||
|
|
Loading…
Reference in a new issue