text: Title: Replace flake8 with ruff
  Body: https://github.com/charliermarsh/ruff 
  
  This is so much better than flake8. We should be able to replace all our flake8 integrations with ruff for speed improvements and fewer dependencies. 