Skip to content

Commit 0f50a62

Browse files
committed
trivial: Prepare for ruff bump
Signed-off-by: Stephen Finucane <[email protected]>
1 parent 2aa4742 commit 0f50a62

File tree

7 files changed

+5
-15
lines changed

7 files changed

+5
-15
lines changed

patchwork/models.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1059,7 +1059,6 @@ def __str__(self):
10591059

10601060

10611061
class Check(models.Model):
1062-
10631062
"""Check for a patch.
10641063
10651064
Checks store the results of any tests executed (or executing) for a

patchwork/tests/test_notifications.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121

2222
class PatchNotificationModelTest(TestCase):
23-
2423
"""Tests for the creation and update of the PatchChangeNotifications."""
2524

2625
def setUp(self):

patchwork/tests/views/test_api.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313

1414
class SubmitterCompletionTest(TestCase):
15-
1615
"""Validate the 'submitter' autocomplete endpoint."""
1716

1817
def test_name_complete(self):

patchwork/tests/views/test_bundles.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,6 @@ def setUp(self):
222222

223223

224224
class BundlePublicModifyTest(BundleTestBase):
225-
226225
"""Ensure that non-owners can't modify bundles"""
227226

228227
def setUp(self):
@@ -275,7 +274,6 @@ def test_bundle_form_submission(self):
275274

276275

277276
class BundlePrivateViewTest(BundleTestBase):
278-
279277
"""Ensure that non-owners can't view private bundles"""
280278

281279
def setUp(self):
@@ -306,7 +304,6 @@ def test_private_bundle(self):
306304

307305
@override_settings(ENABLE_REST_API=True)
308306
class BundlePrivateViewMboxTest(BundlePrivateViewTest):
309-
310307
"""Ensure that non-owners can't view private bundle mboxes"""
311308

312309
def setUp(self):
@@ -704,7 +701,6 @@ def test_add_to_non_empty_bundle(self):
704701

705702

706703
class BundleInitialOrderTest(BundleTestBase):
707-
708704
"""When creating bundles from a patch list, ensure that the patches in the
709705
bundle are ordered by date"""
710706

patchwork/tests/views/test_mail.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,6 @@ def test_valid_hash(self):
175175

176176

177177
class OptoutPreexistingTest(OptoutTest):
178-
179178
"""Test that a duplicated opt-out behaves the same as the initial one"""
180179

181180
def setUp(self):
@@ -280,7 +279,6 @@ def test_valid_hash(self):
280279

281280

282281
class OptinWithoutOptoutTest(TestCase):
283-
284282
"""Test an opt-in with no existing opt-out."""
285283

286284
def test_opt_in_without_optout(self):
@@ -294,7 +292,6 @@ def test_opt_in_without_optout(self):
294292

295293

296294
class UserProfileOptoutFormTest(TestCase):
297-
298295
"""Validate presence of correct optin/optout forms."""
299296

300297
form_re_template = (

patchwork/tests/views/test_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ def test_utf8_nbsp_tags(self):
3838
"""Test that UTF-8 NBSP characters are correctly handled."""
3939
patch = create_patch(content='patch text\n')
4040
create_patch_comment(
41-
patch=patch, content='comment\nAcked-by:\u00A0 foo'
41+
patch=patch, content='comment\nAcked-by:\u00a0 foo'
4242
)
4343

4444
mbox = utils.patch_to_mbox(patch)
45-
self.assertIn('\u00A0 foo\n', mbox)
45+
self.assertIn('\u00a0 foo\n', mbox)
4646

4747
def test_multiple_tags(self):
4848
"""Test that the mbox view appends tags correct.

patchwork/views/mail.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ def _optinout(request, action):
7878

7979
form = EmailForm(data=request.POST)
8080
if not form.is_valid():
81-
context[
82-
'error'
83-
] = 'There was an error in the form. Please review and re-submit.'
81+
context['error'] = (
82+
'There was an error in the form. Please review and re-submit.'
83+
)
8484
context['form'] = form
8585
return render(request, html_template, context)
8686

0 commit comments

Comments
 (0)