Skip to content

Commit

Permalink
Automated Commit - Formatting Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
bnchrch authored and octavia-squidington-iii committed Oct 14, 2023
1 parent 28424b7 commit 8f28f41
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
14 changes: 9 additions & 5 deletions airbyte-ci/connectors/pipelines/pipelines/commands/airbyte_ci.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
"""This module is the CLI entrypoint to the airbyte-ci commands."""

import importlib
from typing import List
import git
import click
import os
import logging
import os
from pathlib import Path
from typing import List

import click
import git
from github import PullRequest
from pathlib import Path
from pipelines import github, main_logger
from pipelines.bases import CIContext
from pipelines.consts import LOCAL_PIPELINE_PACKAGE_PATH
Expand Down Expand Up @@ -65,6 +65,7 @@ def get_latest_version() -> str:
return line.split("=")[1].strip().replace('"', "")
raise Exception("Could not find version in pyproject.toml. Please ensure you are running from the root of the airbyte repo.")


def get_airbyte_repo() -> git.Repo:
"""Get the airbyte repo."""
return git.Repo(search_parent_directories=True)
Expand All @@ -80,10 +81,12 @@ def get_airbyte_repo_path_with_fallback() -> Path:
logging.warning(f"Using {path} as the airbyte repo path.")
return path


def set_working_directory_to_root() -> None:
"""Set the working directory to the root of the airbyte repo."""
os.chdir(get_airbyte_repo_path_with_fallback())


def get_modified_files(
git_branch: str, git_revision: str, diffed_branch: str, is_local: bool, ci_context: CIContext, pull_request: PullRequest
) -> List[str]:
Expand All @@ -110,6 +113,7 @@ def get_modified_files(

# COMMANDS


@click.group(help="Airbyte CI top-level command group.")
@click.version_option(__installed_version__)
@click.option("--is-local/--is-ci", default=True)
Expand Down
1 change: 0 additions & 1 deletion airbyte-ci/connectors/pipelines/pipelines/dagger_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

import pkg_resources
import requests

from pipelines.commands.airbyte_ci import set_working_directory_to_root

LOGGER = logging.getLogger(__name__)
Expand Down

0 comments on commit 8f28f41

Please sign in to comment.