diff --git a/ippisite/.flake8 b/ippisite/.flake8
index 4f26fb012ab0575208883e5d301117da18cb239e..41410fc35e285d25d83b87604a60eb21537d5611 100644
--- a/ippisite/.flake8
+++ b/ippisite/.flake8
@@ -1,3 +1,4 @@
 [flake8]
-ignore = E501, W503
+max-line-length = 120
+ignore = W503
 exclude = */migrations/*.py, manage.py, docs/source/conf.py
diff --git a/ippisite/ippidb/admin.py b/ippisite/ippidb/admin.py
index 7bfcba08776fe8ba0f692883069de9a8ccd31a54..45385a302e94dc4d7baa6b881daa52ed54d19646 100644
--- a/ippisite/ippidb/admin.py
+++ b/ippisite/ippidb/admin.py
@@ -137,7 +137,9 @@ class ContributionModelAdmin(ViewOnSiteModelAdmin):
         launch_validate_contributions.delay(ids)
         self.message_user(
             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).",
         )
 
 
diff --git a/ippisite/ippidb/management/commands/compute_compound_properties.py b/ippisite/ippidb/management/commands/compute_compound_properties.py
index 9f7eb61ef8cb198f8fb810d2b9741fabd15eeb52..22153cacb941501cc32c490117c2e4f4201edaee 100644
--- a/ippisite/ippidb/management/commands/compute_compound_properties.py
+++ b/ippisite/ippidb/management/commands/compute_compound_properties.py
@@ -307,7 +307,8 @@ class Command(BaseCommand):
                 except ValueError as ve:
                     self.stderr.write(
                         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)
diff --git a/ippisite/ippidb/tasks.py b/ippisite/ippidb/tasks.py
index 7b3267c83aaae34ea1027732ae05657817837a91..becdf53d629f528b16f3b222823eb255bb781e48 100644
--- a/ippisite/ippidb/tasks.py
+++ b/ippisite/ippidb/tasks.py
@@ -114,7 +114,8 @@ def compute_compound_properties(compound_ids):
                 updated_properties[ippidb_prop] = ippidb_conv(item[galaxy_prop])
             except ValueError as ve:
                 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():
             setattr(compound, key, value)