Skip to content

Commit

Permalink
Formatted with black
Browse files Browse the repository at this point in the history
  • Loading branch information
johnathan-rodriguez committed Feb 4, 2025
1 parent fcbf450 commit 9a1cfbf
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 14 deletions.
6 changes: 3 additions & 3 deletions shipyard_blueprints/asana/shipyard_asana/cli/create_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ def main():
logger = get_logger()
args = get_args()
client = asana.Client.access_token(args.access_token)
client.headers["Asana-Disable"] = (
"new_user_task_lists,new_goal_memberships" # suppress warnings
)
client.headers[
"Asana-Disable"
] = "new_user_task_lists,new_goal_memberships" # suppress warnings
workspace_id = args.workspace_id
project_id = args.project_id
name = args.name
Expand Down
6 changes: 3 additions & 3 deletions shipyard_blueprints/asana/shipyard_asana/cli/edit_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ def main():
logger = get_logger()

client = asana.Client.access_token(args.access_token)
client.headers["Asana-Disable"] = (
"new_user_task_lists,new_goal_memberships" # suppress warnings
)
client.headers[
"Asana-Disable"
] = "new_user_task_lists,new_goal_memberships" # suppress warnings
params = {}
if args.name != "":
params["name"] = args.name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ def main():
)
)
else:

successful.append(
ValidationResult(
status="Success",
Expand Down
1 change: 0 additions & 1 deletion shipyard_blueprints/magnite/shipyard_magnite/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ def transform_data_to_budgets(raw_data):


def log_campaign_report(reports, errors, description):

if len(reports) - len(errors) > 0:
logger.info(f"======= Reports for Successful {description}(s) =======")
for report in reports:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ def create_connection_string(args):
if args.db_connection_url:
os.environ["DB_CONNECTION_URL"] = args.db_connection_url
elif args.host and args.database:
os.environ["DB_CONNECTION_URL"] = (
f"postgresql://{args.username}:{args.password}@{args.host}:{args.port}/{args.database}?{args.url_parameters}"
)
os.environ[
"DB_CONNECTION_URL"
] = f"postgresql://{args.username}:{args.password}@{args.host}:{args.port}/{args.database}?{args.url_parameters}"

db_string = os.environ.get("DB_CONNECTION_URL")
return db_string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ def create_connection_string(args):
if args.db_connection_url:
os.environ["DB_CONNECTION_URL"] = args.db_connection_url
elif args.host and args.database:
os.environ["DB_CONNECTION_URL"] = (
f"postgresql://{args.username}:{args.password}@{args.host}:{args.port}/{args.database}?{args.url_parameters}"
)
os.environ[
"DB_CONNECTION_URL"
] = f"postgresql://{args.username}:{args.password}@{args.host}:{args.port}/{args.database}?{args.url_parameters}"

db_string = os.environ.get("DB_CONNECTION_URL")
return db_string
Expand Down

0 comments on commit 9a1cfbf

Please sign in to comment.