code: def ruff(c, fix=False, diff=False):
      """Run Ruff to ensure code meets project standards."""
      diff_flag, fix_flag = "", ""
      if fix:
          fix_flag = "--fix"
      if diff:
          diff_flag = "--diff"
      c.run(f"{VENV_BIN}/ruff check {diff_flag} {fix_flag} .", pty=PTY)
  
file_path: pelican/tasks.py
imports: import os
  from pathlib import Path
  from shutil import which
  from invoke import task
label_desc: Use image node_id 6 for calling a global function with example usage: ruff(c, fix, diff) without return types