diff --git a/src/cal_tools/agipdlib.py b/src/cal_tools/agipdlib.py
index 3ae30fafb4df92e44778f714de9c97c5140a5297..078a6c4add63a7a201dde63c416092c0851083d1 100644
--- a/src/cal_tools/agipdlib.py
+++ b/src/cal_tools/agipdlib.py
@@ -322,21 +322,23 @@ class AgipdCtrlRuns:
             if len(set(values)) != 1:
                 # Should we raise an error and stop processing?
                 warning(
-                    f"{name} is not the same for all runs {self.runs} with values"
-                    f" of {values}, respectively.")
+                    f"{name} is not the same for all runs {self.runs}"
+                    f" with values of {values}, respectively.")
 
     def sort_dark_runs(self):
-        assert len(self.run_ctrls) == 3, f"AGIPD dark runs are expected to be 3. {len(self.run_ctrls)} runs are given."
+        assert len(self.run_ctrls) == 3, f"AGIPD dark runs are expected to be 3. {len(self.run_ctrls)} runs are given."  # noqa
         # TODO: complete sorting
 
     def validate_gain_modes(self):
         """Validate the runs' gain modes arrangement.
-        
+
         Raises:
             ValueError: Runs are a mix of adaptive and fixed gains
             ValueError: Unexpected gain modes for the dark runs"""
         if self.gain_modes in [
-            self.adaptive_gain_modes, self.fixed_gain_modes]:
+            self.adaptive_gain_modes,
+            self.fixed_gain_modes
+        ]:
             return  # all good.
         # Check if a mix of adaptive and fixed gain runs.
         if any(gm == AgipdGainMode.ADAPTIVE_GAIN for gm in self.gain_modes):
@@ -345,8 +347,8 @@ class AgipdCtrlRuns:
                 f"FIXED gain modes: {self.gain_modes}.")
         else:  # Unsorted fixed gain runs.
             raise ValueError(
-            "Wrong arrangement of given dark runs. Given runs' "
-            f"gain_modes are {self.gain_modes} for runs: {self.runs}.")
+                "Wrong arrangement of given dark runs. Given runs' "
+                f"gain_modes are {self.gain_modes} for runs: {self.runs}.")
 
     def fixed_gain_mode(self):
         """Check if runs are in fixed gain mode.