Skip to content

Commit

Permalink
🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Jul 5, 2024
1 parent f69ece9 commit 686eb5d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cosmos/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

from cosmos import cache, settings
from cosmos.airflow.graph import build_airflow_graph
from cosmos.config import ProjectConfig, ExecutionConfig, RenderConfig, ProfileConfig
from cosmos.config import ExecutionConfig, ProfileConfig, ProjectConfig, RenderConfig
from cosmos.constants import ExecutionMode
from cosmos.dbt.graph import DbtGraph
from cosmos.dbt.selector import retrieve_by_label
Expand Down
5 changes: 2 additions & 3 deletions cosmos/operators/virtualenv.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
from __future__ import annotations

from functools import cached_property
import os
import psutil
import time

from functools import cached_property
from pathlib import Path
from tempfile import TemporaryDirectory
from typing import TYPE_CHECKING, Any, Callable

import psutil
from airflow.utils.python_virtualenv import prepare_virtualenv

from cosmos.exceptions import CosmosValueError
Expand Down
4 changes: 2 additions & 2 deletions dev/dags/example_virtualenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@
from datetime import datetime
from pathlib import Path

from airflow.decorators import dag
from airflow.configuration import get_airflow_home
from airflow.decorators import dag
from airflow.operators.empty import EmptyOperator

from cosmos import DbtTaskGroup, ExecutionConfig, ExecutionMode, ProfileConfig, ProjectConfig

from cosmos.profiles import PostgresUserPasswordProfileMapping

DEFAULT_DBT_ROOT_PATH = Path(__file__).parent / "dbt"
Expand All @@ -27,6 +26,7 @@
),
)


# [START virtualenv_example]
@dag(
schedule_interval="@daily",
Expand Down

0 comments on commit 686eb5d

Please sign in to comment.