Improve a little bit the code
parent
13226b9745
commit
24433d5c23
|
@ -3,8 +3,8 @@
|
||||||
import re
|
import re
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from nvexpo import nvexpo
|
|
||||||
from nvexpo import consts as CONSTS
|
from nvexpo import consts as CONSTS
|
||||||
|
from nvexpo import nvexpo
|
||||||
|
|
||||||
|
|
||||||
def main() -> int:
|
def main() -> int:
|
||||||
|
@ -17,10 +17,6 @@ def main() -> int:
|
||||||
nvexpo.unset_env(args[2:])
|
nvexpo.unset_env(args[2:])
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
if args[1] in ["--load"]:
|
|
||||||
nvexpo._load()
|
|
||||||
return 0
|
|
||||||
|
|
||||||
if args[1] in ["init"]:
|
if args[1] in ["init"]:
|
||||||
try:
|
try:
|
||||||
nvexpo.init(args[2])
|
nvexpo.init(args[2])
|
||||||
|
|
|
@ -41,7 +41,11 @@ ignore = [
|
||||||
"PLR2004",
|
"PLR2004",
|
||||||
"FA102",
|
"FA102",
|
||||||
"PLW2901",
|
"PLW2901",
|
||||||
"N812"
|
"N812",
|
||||||
|
"C901",
|
||||||
|
"PLR0912",
|
||||||
|
"D213",
|
||||||
|
"D211"
|
||||||
]
|
]
|
||||||
fixable = ["ALL"]
|
fixable = ["ALL"]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue