Apply 2026 black style

This commit is contained in:
Nicola Soranzo
2026-01-20 10:25:45 +00:00
parent 8c27a7029e
commit 17003e8d00
208 changed files with 843 additions and 1447 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ if __name__ == "__main__":
print(usage, file=sys.stderr)
sys.exit(1)
(base_url, key, hda_id, library_id, folder_id) = sys.argv[1:6]
base_url, key, hda_id, library_id, folder_id = sys.argv[1:6]
message = ""
if num_args >= 7:
+1
View File
@@ -4,6 +4,7 @@ Generic POST/create script
usage: create.py key url [key=value ...]
"""
import sys
from common import submit
+1 -1
View File
@@ -87,7 +87,7 @@ if __name__ == "__main__":
default=DEFAULT_SLEEP_TIME,
help="How long to sleep between check loops",
)
(options, args) = parser.parse_args()
options, args = parser.parse_args()
# check options
assert options.api_key is not None, ValueError("You must specify an API key.")
+1
View File
@@ -4,6 +4,7 @@ Generic DELETE/delete script
usage: delete.py key url
"""
import sys
from common import delete
+1 -1
View File
@@ -115,7 +115,7 @@ class Uploader:
all_files = [x.strip() for x in list(sys.stdin.readlines())]
for idx, path in enumerate(all_files):
(dirName, fname) = path.rsplit(os.path.sep, 1)
dirName, fname = path.rsplit(os.path.sep, 1)
if not os.path.exists(os.path.join(dirName, fname)):
continue
# Figure out what the memo key will be early
@@ -8,6 +8,7 @@ usage: reset_metadata_on_installed_repositories.py key
Here is a working example of how to use this script.
python ./reset_metadata_on_installed_repositories.py -a 22be3b -u http://localhost:8763/
"""
import argparse
from common import submit
+1
View File
@@ -4,6 +4,7 @@ Generic PUT/update script
usage: create.py key url [key=value ...]
"""
import sys
from common import update