mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Apply 2026 black style
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -4,6 +4,7 @@ Generic POST/create script
|
||||
|
||||
usage: create.py key url [key=value ...]
|
||||
"""
|
||||
|
||||
import sys
|
||||
|
||||
from common import submit
|
||||
|
||||
@@ -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.")
|
||||
|
||||
@@ -4,6 +4,7 @@ Generic DELETE/delete script
|
||||
|
||||
usage: delete.py key url
|
||||
"""
|
||||
|
||||
import sys
|
||||
|
||||
from common import delete
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -4,6 +4,7 @@ Generic PUT/update script
|
||||
|
||||
usage: create.py key url [key=value ...]
|
||||
"""
|
||||
|
||||
import sys
|
||||
|
||||
from common import update
|
||||
|
||||
Reference in New Issue
Block a user