Skip to content

Commit

Permalink
ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxHalford committed Oct 30, 2023
1 parent 1a93ae5 commit d4318cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions lea/clients/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
import json
import os

from .base import Client


def make_client(production: bool):
warehouse = os.environ["LEA_WAREHOUSE"]
Expand Down
6 changes: 3 additions & 3 deletions lea/clients/duckdb.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from __future__ import annotations

import pathlib
import os
import pathlib

import duckdb
import pandas as pd
Expand Down Expand Up @@ -69,7 +69,7 @@ def list_existing_view_names(self) -> list[tuple[str, str]]:
]

def get_tables(self):
query = f"""
query = """
SELECT
schema_name || '.' || table_name AS view_name,
estimated_size AS n_rows, -- TODO: Figure out how to get the exact number
Expand All @@ -79,7 +79,7 @@ def get_tables(self):
return self.con.sql(query).df()

def get_columns(self) -> pd.DataFrame:
query = f"""
query = """
SELECT
table_schema || '.' || table_name AS view_name,
column_name AS column,
Expand Down

0 comments on commit d4318cb

Please sign in to comment.