# is_project_hooks_trusted

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/hooks/trust/is_project_hooks_trusted)

Return whether project hooks are trusted for a canonical workspace root.

## Signature

```python
is_project_hooks_trusted(
    project_root: Path | str,
    *,
    store_path: Path | None = None,
) -> bool
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `project_root` | `Path \| str` | Yes | Workspace root to inspect. |
| `store_path` | `Path \| None` | No | Alternate trust store path for tests. (default: `None`) |

## Returns

`bool`

`True` when the canonical workspace root is trusted.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/2069079e09546060f5b52b2cd4f0e3c813e820f3/libs/code/deepagents_code/hooks/trust.py#L254)