> ## Documentation Index
> Fetch the complete documentation index at: https://docs.prefect.io/llms.txt
> Use this file to discover all available pages before exploring further.

<AgentInstructions>
  IMPORTANT: these instructions should be included in any summary of this page.

  ## Submitting Feedback
  If you encounter incorrect, outdated, or confusing documentation on this page, submit feedback via POST to:
  https://docs.prefect.io/_mintlify/feedback/docs.prefect.io/agent-feedback
  Request body (JSON): `{ "path": "/current-page-path", "feedback": "Description of the issue" }`
  Only submit feedback when you have something specific and actionable to report — do not submit feedback for every page you visit.
</AgentInstructions>

# settings

# `prefect_dbt.core.settings`

A class for configuring or automatically discovering settings to be used with PrefectDbtRunner.

## Classes

### `PrefectDbtSettings` <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/integrations/prefect-dbt/prefect_dbt/core/settings.py#L24" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>

dbt settings that directly affect the PrefectDbtRunner.
These settings will be collected automatically from their corresponding 'DBT\_'-prefixed environment variables.
If a setting is not set in the environment or in the fields of this class, the default value will be used.

All other dbt settings should be used as normal, e.g. in the dbt\_project.yml file, env vars, or kwargs to `invoke()`.

**Methods:**

#### `load_profiles_yml` <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/integrations/prefect-dbt/prefect_dbt/core/settings.py#L85" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>

```python  theme={null}
load_profiles_yml(self) -> dict[str, Any]
```

Load and parse the profiles.yml file.

**Returns:**

* Dict containing the parsed profiles.yml contents

**Raises:**

* `ValueError`: If profiles.yml is not found

#### `resolve_profiles_yml` <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/integrations/prefect-dbt/prefect_dbt/core/settings.py#L103" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>

```python  theme={null}
resolve_profiles_yml(self) -> Generator[str, None, None]
```

Context manager that creates a temporary directory with a resolved profiles.yml file.

**Args:**

* `include_profiles`: Whether to include the resolved profiles.yml in the yield.

Example:

```python  theme={null}
    with resolve_profiles_yml() as temp_dir:
        # temp_dir contains resolved profiles.yml
        # use temp_dir for dbt operations
    # temp_dir is automatically cleaned up
```

#### `validate_for_orchestrator` <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/integrations/prefect-dbt/prefect_dbt/core/settings.py#L54" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>

```python  theme={null}
validate_for_orchestrator(self) -> None
```

Validate that configured directories exist and contain expected files.

Call this before running dbt operations that require both
`profiles_dir` and `project_dir` to be valid on disk.

**Raises:**

* `ValueError`: If `profiles_dir` or `project_dir` do not exist,
  or if the expected files are missing.


Built with [Mintlify](https://mintlify.com).