code: def lint(c, fix=False, diff=False):
      """Check code style via linting tools."""
      ruff(c, fix=fix, diff=diff)
      format(c, check=not fix, diff=diff)
  
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 7 for calling a global function with example usage: lint(c, fix, diff) without return types