From 8291f829d702757b6e0dff95b75f1f6694ec5132 Mon Sep 17 00:00:00 2001 From: Russell Martin Date: Tue, 21 Nov 2023 11:11:50 -0500 Subject: [PATCH] Ensure new Toga projects pass Black --- .github/workflows/ci.yml | 4 ++-- changes/1548.misc.rst | 1 + src/briefcase/bootstraps/toga.py | 1 - tests/commands/new/test_build_context.py | 2 -- 4 files changed, 3 insertions(+), 5 deletions(-) create mode 100644 changes/1548.misc.rst diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6dffce592..27078086d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -142,8 +142,8 @@ jobs: name: html-coverage-report-project path: htmlcov - verify-templates: - name: Verify Templates + verify-projects: + name: Verify project needs: unit-tests uses: beeware/.github/.github/workflows/app-create-verify.yml@main with: diff --git a/changes/1548.misc.rst b/changes/1548.misc.rst new file mode 100644 index 000000000..6d313010f --- /dev/null +++ b/changes/1548.misc.rst @@ -0,0 +1 @@ +The Toga app source code for new projects now passes Black. diff --git a/src/briefcase/bootstraps/toga.py b/src/briefcase/bootstraps/toga.py index f6ed29787..71e20aba0 100644 --- a/src/briefcase/bootstraps/toga.py +++ b/src/briefcase/bootstraps/toga.py @@ -10,7 +10,6 @@ def app_source(self): class {{ cookiecutter.class_name }}(toga.App): - def startup(self): """Construct and show the Toga application. diff --git a/tests/commands/new/test_build_context.py b/tests/commands/new/test_build_context.py index fb58c13a2..ea9920b20 100644 --- a/tests/commands/new/test_build_context.py +++ b/tests/commands/new/test_build_context.py @@ -67,7 +67,6 @@ def test_question_sequence_toga(new_command): class {{ cookiecutter.class_name }}(toga.App): - def startup(self): """Construct and show the Toga application. @@ -841,7 +840,6 @@ def test_question_sequence_with_no_user_input(new_command): class {{ cookiecutter.class_name }}(toga.App): - def startup(self): """Construct and show the Toga application.