text: Title: [MNT] Update `ruff` version bound for `pre-commit` checks
  Body: ### Describe the issue
  
  Recent versions of `ruff` cause failures on our CI due to a few outdated notebooks 
  
  See https://github.com/aeon-toolkit/aeon/actions/runs/10445173697/job/28920730227?pr=1986
  
  ### Suggest a potential alternative/fix
  
  Fix the issues in these notebooks and upgrade the bound
  
  ### Additional context
  
  _No response_