Skip to content

Commit

Permalink
ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxHalford committed Jul 22, 2024
1 parent 180bac8 commit a0767b7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lea/clients/bigquery.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def client(self):
return bigquery.Client(
# TODO: enable this so the project ID from the credentials is used, which makes sense
# when the client is located in the project doing the compute (with slots allocated)
#project=self.credentials.project_id,
# project=self.credentials.project_id,
project=self.project_id,
credentials=self.credentials,
location=self.location,
Expand Down
7 changes: 3 additions & 4 deletions lea/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,10 +299,9 @@ def get_status(view_key):

not_done = [view_key for view_key in execution_order if view_key not in cache]
statuses = {view_key: get_status(view_key) for view_key in not_done}
not_done = (
[view_key for view_key in not_done if statuses[view_key] != RUNNING] +
[view_key for view_key in not_done if statuses[view_key] == RUNNING]
)
not_done = [view_key for view_key in not_done if statuses[view_key] != RUNNING] + [
view_key for view_key in not_done if statuses[view_key] == RUNNING
]
for i, view_key in list(enumerate(not_done, start=1))[-show:]:
status = statuses[view_key]
duration = (
Expand Down

0 comments on commit a0767b7

Please sign in to comment.