update black and change line-length to 88 (#8953)

This commit is contained in:
skshetry
2023-02-04 05:28:07 +02:00
committed by GitHub
parent 5d2701341b
commit a86470ccbc
317 changed files with 1520 additions and 3738 deletions
+3 -9
View File
@@ -10,9 +10,7 @@ innosetup = path / "innosetup"
fpm = path / "fpm"
parser = argparse.ArgumentParser()
parser.add_argument(
"pkg", choices=["deb", "rpm", "osxpkg", "exe"], help="package type"
)
parser.add_argument("pkg", choices=["deb", "rpm", "osxpkg", "exe"], help="package type")
parser.add_argument("--sign-application", default=False, action="store_true")
parser.add_argument("--application-id")
parser.add_argument("--sign-installer", default=False, action="store_true")
@@ -61,9 +59,7 @@ else:
if args.sign_installer:
if args.pkg != "osxpkg":
raise NotImplementedError
if not all(
[args.installer_id, args.apple_id_username, args.apple_id_password]
):
if not all([args.installer_id, args.apple_id_username, args.apple_id_password]):
print("--sign-installer requires --installer-id")
sys.exit(1)
check_call(
@@ -76,9 +72,7 @@ if args.notarize:
if args.pkg != "osxpkg":
raise NotImplementedError
if not all([args.apple_id_username, args.apple_id_password]):
print(
"--notarize requires --apple-id-username and --apple-id-password"
)
print("--notarize requires --apple-id-username and --apple-id-password")
sys.exit(1)
check_call(
[
+1 -3
View File
@@ -12,9 +12,7 @@ build = path / "build"
install = build / "usr"
parser = argparse.ArgumentParser()
parser.add_argument(
"pkg", choices=["deb", "rpm", "osxpkg"], help="package type"
)
parser.add_argument("pkg", choices=["deb", "rpm", "osxpkg"], help="package type")
args = parser.parse_args()
flags = [
+1 -3
View File
@@ -14,9 +14,7 @@ parser.add_argument(
nargs="?",
help="Path to the osxpkg to notarize. If not specified - try to find one.",
)
parser.add_argument(
"--apple-id-username", required=True, help="Apple ID username."
)
parser.add_argument("--apple-id-username", required=True, help="Apple ID username.")
parser.add_argument(
"--apple-id-password",
required=True,
+1 -3
View File
@@ -1,6 +1,4 @@
from PyInstaller.utils.hooks import ( # pylint:disable=import-error
copy_metadata,
)
from PyInstaller.utils.hooks import copy_metadata # pylint:disable=import-error
# needed for `dvc doctor` to show dep versions
datas = copy_metadata("adlfs", recursive=True)
@@ -1,6 +1,4 @@
from PyInstaller.utils.hooks import ( # pylint:disable=import-error
copy_metadata,
)
from PyInstaller.utils.hooks import copy_metadata # pylint:disable=import-error
datas = copy_metadata("google-cloud-storage")
@@ -1,5 +1,3 @@
from PyInstaller.utils.hooks import ( # pylint:disable=import-error
copy_metadata,
)
from PyInstaller.utils.hooks import copy_metadata # pylint:disable=import-error
datas = copy_metadata("flatten-dict")
@@ -1,6 +1,4 @@
from PyInstaller.utils.hooks import ( # pylint:disable=import-error
copy_metadata,
)
from PyInstaller.utils.hooks import copy_metadata # pylint:disable=import-error
datas = copy_metadata("google-compute-engine")
hiddenimports = ["google_cloud_engine"]
+1 -3
View File
@@ -1,5 +1,3 @@
from PyInstaller.utils.hooks import ( # pylint:disable=import-error
copy_metadata,
)
from PyInstaller.utils.hooks import copy_metadata # pylint:disable=import-error
datas = copy_metadata("pydrive2")