Run Black on changed file
This commit is contained in:
parent
510449ce65
commit
4f36fe2b9f
1 changed files with 8 additions and 4 deletions
|
@ -124,8 +124,10 @@ def run_configuration(config_filename, config, arguments):
|
||||||
if not encountered_error:
|
if not encountered_error:
|
||||||
repo_queue = Queue()
|
repo_queue = Queue()
|
||||||
for repo in location['repositories']:
|
for repo in location['repositories']:
|
||||||
repo_queue.put((repo,0),)
|
repo_queue.put(
|
||||||
|
(repo, 0),
|
||||||
|
)
|
||||||
|
|
||||||
while not repo_queue.empty():
|
while not repo_queue.empty():
|
||||||
repository_path, retry_num = repo_queue.get()
|
repository_path, retry_num = repo_queue.get()
|
||||||
try:
|
try:
|
||||||
|
@ -145,7 +147,9 @@ def run_configuration(config_filename, config, arguments):
|
||||||
'{}: Error running actions for repository'.format(repository_path), error
|
'{}: Error running actions for repository'.format(repository_path), error
|
||||||
)
|
)
|
||||||
if retry_num < retries:
|
if retry_num < retries:
|
||||||
repo_queue.put((repository_path,retry_num + 1),)
|
repo_queue.put(
|
||||||
|
(repository_path, retry_num + 1),
|
||||||
|
)
|
||||||
logger.warning(f'Retrying.. attempt {retry_num + 1}/{retries}')
|
logger.warning(f'Retrying.. attempt {retry_num + 1}/{retries}')
|
||||||
continue
|
continue
|
||||||
encountered_error = error
|
encountered_error = error
|
||||||
|
@ -268,7 +272,7 @@ def run_actions(
|
||||||
hooks,
|
hooks,
|
||||||
local_path,
|
local_path,
|
||||||
remote_path,
|
remote_path,
|
||||||
repository_path
|
repository_path,
|
||||||
): # pragma: no cover
|
): # pragma: no cover
|
||||||
'''
|
'''
|
||||||
Given parsed command-line arguments as an argparse.ArgumentParser instance, several different
|
Given parsed command-line arguments as an argparse.ArgumentParser instance, several different
|
||||||
|
|
Loading…
Reference in a new issue