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
|
import fs
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
file_path = os.path.realpath(__file__)
|
file_path = os.path.realpath(__file__)
|
||||||
root_path = os.path.dirname(file_path)
|
root_path = os.path.dirname(file_path)
|
||||||
|
|
|
@ -10,6 +10,5 @@ def need(command: str) -> None:
|
||||||
package = "squashfs-tools"
|
package = "squashfs-tools"
|
||||||
case _:
|
case _:
|
||||||
package = None
|
package = None
|
||||||
if package:
|
if package and package not in packages:
|
||||||
if package not in packages:
|
packages.append(package)
|
||||||
packages.append(package)
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
import ps
|
import ps
|
||||||
|
|
||||||
import rwx.cmd
|
import rwx.cmd
|
||||||
|
|
||||||
rwx.cmd.need("mksquashfs")
|
rwx.cmd.need("mksquashfs")
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
import cmd
|
import cmd
|
||||||
|
|
||||||
import ps
|
import ps
|
||||||
|
|
||||||
cmd.need("debootstrap")
|
cmd.need("debootstrap")
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
import cmd
|
import cmd
|
||||||
|
|
||||||
import ps
|
import ps
|
||||||
|
|
||||||
cmd.need("grub-mkimage")
|
cmd.need("grub-mkimage")
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
import logging
|
import logging
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
|
||||||
def get_file_logger(name: str) -> logging.Logger:
|
def get_file_logger(name: str) -> logging.Logger:
|
||||||
formatter = logging.Formatter(
|
formatter = logging.Formatter(
|
||||||
"%(name)s: %(asctime)s | %(levelname)s | %(filename)s:%(lineno)s | %(process)d >>> %(message)s",
|
"%(name)s: %(asctime)s | %(levelname)s | %(filename)s:%(lineno)s | %(process)d >>> %(message)s",
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
from os import path
|
from os import path
|
||||||
|
|
||||||
from sphinx.cmd.build import build_main
|
from sphinx.cmd.build import build_main
|
||||||
|
|
||||||
from rwx.fs import wipe
|
from rwx.fs import wipe
|
||||||
|
|
Loading…
Reference in a new issue