Skip to content
Snippets Groups Projects
Commit 7799c9a8 authored by Bryan BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

prevent too long line, format the few line too long

parent 6a67eee1
No related branches found
No related tags found
1 merge request!13Master
Pipeline #24829 passed
[flake8] [flake8]
ignore = E501, W503 max-line-length = 120
ignore = W503
exclude = */migrations/*.py, manage.py, docs/source/conf.py exclude = */migrations/*.py, manage.py, docs/source/conf.py
...@@ -137,7 +137,9 @@ class ContributionModelAdmin(ViewOnSiteModelAdmin): ...@@ -137,7 +137,9 @@ class ContributionModelAdmin(ViewOnSiteModelAdmin):
launch_validate_contributions.delay(ids) launch_validate_contributions.delay(ids)
self.message_user( self.message_user(
request, request,
f"validation started for contributions(s) {','.join(str(id) for id in queryset.values_list('id', flat=True))} (this might take a while).", f"validation started for contributions(s) "
f"{','.join(str(id) for id in queryset.values_list('id', flat=True))}"
f" (this might take a while).",
) )
......
...@@ -307,7 +307,8 @@ class Command(BaseCommand): ...@@ -307,7 +307,8 @@ class Command(BaseCommand):
except ValueError as ve: except ValueError as ve:
self.stderr.write( self.stderr.write(
self.style.ERROR( self.style.ERROR(
f"Error setting property {ippidb_prop} to {item[galaxy_prop]} in compound {compound.id} \ndetails:{ve}" f"Error setting property {ippidb_prop} to {item[galaxy_prop]}"
f" in compound {compound.id} \ndetails:{ve}"
) )
) )
properties_list.append(ippidb_dict) properties_list.append(ippidb_dict)
......
...@@ -114,7 +114,8 @@ def compute_compound_properties(compound_ids): ...@@ -114,7 +114,8 @@ def compute_compound_properties(compound_ids):
updated_properties[ippidb_prop] = ippidb_conv(item[galaxy_prop]) updated_properties[ippidb_prop] = ippidb_conv(item[galaxy_prop])
except ValueError as ve: except ValueError as ve:
print( print(
f"Error setting property {ippidb_prop} to {item[galaxy_prop]} in compound {compound.id} \ndetails:{ve}" f"Error setting property {ippidb_prop} to {item[galaxy_prop]}"
f" in compound {compound.id} \ndetails:{ve}"
) )
for key, value in updated_properties.items(): for key, value in updated_properties.items():
setattr(compound, key, value) setattr(compound, key, value)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment