Skip to content

Commit

Permalink
ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxHalford committed Nov 30, 2023
1 parent a687b45 commit 9da6537
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion lea/app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,9 @@ def docs(


@app.command()
def diff(views_dir: str = ViewsDir, select: list[str] = typer.Option(default=None), env: str = EnvPath):
def diff(
views_dir: str = ViewsDir, select: list[str] = typer.Option(default=None), env: str = EnvPath
):
from lea.app.diff import calculate_diff

diff = calculate_diff(
Expand Down
8 changes: 6 additions & 2 deletions lea/app/diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,12 @@ def get_size_diff(
return comparison


def calculate_diff(views_dir: pathlib.Path, select: set[str], origin_client: lea.clients.Client, target_client: lea.clients.Client) -> str:

def calculate_diff(
views_dir: pathlib.Path,
select: set[str],
origin_client: lea.clients.Client,
target_client: lea.clients.Client,
) -> str:
# Organize the views into a directed acyclic graph
views = origin_client.open_views(views_dir)
views = [view for view in views if view.schema not in {"tests", "funcs"}]
Expand Down

0 comments on commit 9da6537

Please sign in to comment.