Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 5, 2024
1 parent 07ae008 commit bce7706
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
6 changes: 3 additions & 3 deletions app/create_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ def inject_global_constants():
return dict(
stage="beta",
service_meta_author="Department for Levelling up Housing and Communities",
toggle_dict={feature.name: feature.is_enabled() for feature in toggle_client.list()}
if toggle_client
else {},
toggle_dict=(
{feature.name: feature.is_enabled() for feature in toggle_client.list()} if toggle_client else {}
),
)

@flask_app.context_processor
Expand Down
5 changes: 4 additions & 1 deletion app/default/application_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,10 @@ def tasklist(application_id):
# note that individual section feedback COULD be independent of round feedback survey.
# which is why this is not under a conditional round_data.feedback_survey_config.
if round_data.feedback_survey_config.has_section_feedback:
(current_feedback_list, existing_feedback_map,) = get_section_feedback_data(
(
current_feedback_list,
existing_feedback_map,
) = get_section_feedback_data(
application,
section_display_config,
)
Expand Down
4 changes: 2 additions & 2 deletions tests/test_dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ def test_dashboard_route_search_call(
expected_search_params,
):
request_mock = mocker.patch("app.default.account_routes.request")
request_mock.args.get = (
lambda key, default: fund_short_name if key == "fund" else (round_short_name if key == "round" else default)
request_mock.args.get = lambda key, default: (
fund_short_name if key == "fund" else (round_short_name if key == "round" else default)
)
get_apps_mock = mocker.patch(
"app.default.account_routes.search_applications",
Expand Down
3 changes: 1 addition & 2 deletions tests/test_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,7 @@ def test_find_missing_trans(tmpdir, capsys):

stdoutput = capsys.readouterr().out
assert (
stdoutput
== f"Missing translations in {f.strpath}:\n A missing translation\n "
stdoutput == f"Missing translations in {f.strpath}:\n A missing translation\n "
" Another missing translation\n A third missing translation, that"
" spans multiple lines. We want to capture all of its content.\n "
" A fourth missing translation, that spans multiple lines. We"
Expand Down

0 comments on commit bce7706

Please sign in to comment.