pre-commit:
  parallel: true
  commands:
    biome-check:
      glob: "*.{js,jsx,ts,tsx,json}"
      run: pnpm biome check --apply {staged_files}
    ruff-format:
      glob: "*.py"
      run: ruff format {staged_files}
    ruff-lint:
      glob: "*.py"
      run: ruff check --fix {staged_files}

pre-push:
  commands:
    test-js:
      run: pnpm turbo run test --filter=[HEAD^1]
    test-py:
      run: cd backend/api && pytest --cov --cov-fail-under=80
