Skip to content

Commit

Permalink
ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxHalford committed Sep 11, 2024
1 parent ef0b1f8 commit 26d4dab
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 3 additions & 1 deletion lea/clients/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ def teardown(self):
...

@abc.abstractmethod
def _view_key_to_table_reference(self, view_key: tuple[str, ...], with_context: bool, with_project_id=False) -> str:
def _view_key_to_table_reference(
self, view_key: tuple[str, ...], with_context: bool, with_project_id=False
) -> str:
...

@abc.abstractmethod
Expand Down
10 changes: 4 additions & 6 deletions lea/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,9 +461,7 @@ def test(self, select_views: list[str], freeze_unselected: bool, threads: int, f

# List assertion tests
assertion_tests = [
test
for view in self.regular_views.values()
for test in view.yield_assertion_tests()
test for view in self.regular_views.values() for test in view.yield_assertion_tests()
]
self.log(f"Found {len(assertion_tests):,d} assertion tests")

Expand Down Expand Up @@ -545,10 +543,10 @@ def make_docs(self, output_dir: str):
content.write(f"{view.description}\n\n")

# Write down the query
table_reference = self.client._view_key_to_table_reference(view.key, with_context=False)
content.write(
"```sql\n" "SELECT *\n" f"FROM {table_reference}\n" "```\n\n"
table_reference = self.client._view_key_to_table_reference(
view.key, with_context=False
)
content.write("```sql\n" "SELECT *\n" f"FROM {table_reference}\n" "```\n\n")
# Write down the columns
view_columns = pd.DataFrame(
{
Expand Down

0 comments on commit 26d4dab

Please sign in to comment.