* add ruff linter

* enable few more checks
This commit is contained in:
skshetry
2023-01-11 15:20:38 +05:45
committed by GitHub
parent d4bfe38a54
commit 5441964fdb
103 changed files with 359 additions and 346 deletions
+4 -3
View File
@@ -1,5 +1,6 @@
import argparse
import pathlib
import sys
from subprocess import STDOUT, check_call
path = pathlib.Path(__file__).parent.absolute()
@@ -37,7 +38,7 @@ if args.sign_application:
raise NotImplementedError
if not args.application_id:
print("--sign-application requires --application-id")
exit(1)
sys.exit(1)
check_call(
["python", "sign.py", "--application-id", args.application_id],
cwd=pyinstaller,
@@ -64,7 +65,7 @@ if args.sign_installer:
[args.installer_id, args.apple_id_username, args.apple_id_password]
):
print("--sign-installer requires --installer-id")
exit(1)
sys.exit(1)
check_call(
["python", "sign.py", "--installer-id", args.installer_id],
cwd=fpm,
@@ -78,7 +79,7 @@ if args.notarize:
print(
"--notarize requires --apple-id-username and --apple-id-password"
)
exit(1)
sys.exit(1)
check_call(
[
"python",
+2 -2
View File
@@ -36,11 +36,11 @@ else:
pkgs = list(path.glob("*.pkg"))
if not pkgs:
print("No pkgs found")
exit(1)
sys.exit(1)
if len(pkgs) > 1:
print("Too many packages")
exit(1)
sys.exit(1)
(pkg,) = pkgs
+2 -2
View File
@@ -28,11 +28,11 @@ else:
pkgs = list(path.glob("*.pkg"))
if not pkgs:
print("No pkgs found")
exit(1)
sys.exit(1)
if len(pkgs) > 1:
print("Too many packages")
exit(1)
sys.exit(1)
(pkg,) = pkgs