diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2021-05-14 11:46:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-14 11:46:35 +0100 |
commit | 6482075c95957ad980d9c1323f9f982e6f7aaff4 (patch) | |
tree | 593a4e2e96f27d63be8265d1a20228a2271b1be4 /scripts/export_signing_key | |
parent | Minor `@cachedList` enhancements (#9975) (diff) | |
download | synapse-6482075c95957ad980d9c1323f9f982e6f7aaff4.tar.xz |
Run `black` on the scripts (#9981)
Turns out these scripts weren't getting linted.
Diffstat (limited to 'scripts/export_signing_key')
-rwxr-xr-x | scripts/export_signing_key | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/scripts/export_signing_key b/scripts/export_signing_key index 0ed167ea85..bf0139bd64 100755 --- a/scripts/export_signing_key +++ b/scripts/export_signing_key @@ -30,7 +30,11 @@ def exit(status: int = 0, message: Optional[str] = None): def format_plain(public_key: nacl.signing.VerifyKey): print( "%s:%s %s" - % (public_key.alg, public_key.version, encode_verify_key_base64(public_key),) + % ( + public_key.alg, + public_key.version, + encode_verify_key_base64(public_key), + ) ) @@ -50,7 +54,10 @@ if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument( - "key_file", nargs="+", type=argparse.FileType("r"), help="The key file to read", + "key_file", + nargs="+", + type=argparse.FileType("r"), + help="The key file to read", ) parser.add_argument( @@ -63,7 +70,7 @@ if __name__ == "__main__": parser.add_argument( "--expiry-ts", type=int, - default=int(time.time() * 1000) + 6*3600000, + default=int(time.time() * 1000) + 6 * 3600000, help=( "The expiry time to use for -x, in milliseconds since 1970. The default " "is (now+6h)." |