diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c2cbe2a7f..01f1c05a2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -41,13 +41,13 @@ repos: args: [--target-version, "6.0"] - repo: https://github.com/psf/black-pre-commit-mirror - rev: 25.12.0 + rev: 26.1.0 hooks: - id: black args: ["--target-version=py312"] - repo: https://github.com/rbubley/mirrors-prettier - rev: v3.7.4 + rev: v3.8.1 hooks: - id: prettier exclude_types: [html, json, scss] @@ -70,6 +70,6 @@ repos: files: .*/templates/.*\.html$ - repo: https://github.com/mrtazz/checkmake.git - rev: 0.2.2 + rev: v0.3.0 hooks: - id: checkmake diff --git a/docs/tests/test_templates.py b/docs/tests/test_templates.py index 22abd0572..37b6593c7 100644 --- a/docs/tests/test_templates.py +++ b/docs/tests/test_templates.py @@ -47,8 +47,7 @@ def test_get_all_doc_versions(self): self.assertEqual(get_all_doc_versions({}), ["1.8", "1.11", "dev"]) def test_pygments_template_tag(self): - template = Template( - ''' + template = Template(''' {% load docs %} {% pygment 'python' %} def band_listing(request): @@ -57,8 +56,7 @@ def band_listing(request): return render(request, 'bands/band_listing.html', {'bands': bands}) {% endpygment %} -''' - ) +''') self.assertHTMLEqual( template.render(Context()), """ diff --git a/manage.py b/manage.py index 6d4067755..53d45a489 100755 --- a/manage.py +++ b/manage.py @@ -1,5 +1,6 @@ #!/usr/bin/env python """Django's command-line utility for administrative tasks.""" + import os import sys diff --git a/members/forms.py b/members/forms.py index 3124ae7b9..151c49ba1 100644 --- a/members/forms.py +++ b/members/forms.py @@ -51,12 +51,10 @@ def __init__(self, *args, **kwargs): "activities, written as if the DSF were describing your company " "to a third party." ) - self.fields["description"].help_text = _( - """We'll use this text on the + self.fields["description"].help_text = _("""We'll use this text on the corporate membership page; you can use the existing descriptions - as a guide for flavor we're looking for.""" - ) + as a guide for flavor we're looking for.""") self.fields["django_usage"].widget.attrs["placeholder"] = _( "How does your organization use Django?" ) diff --git a/tracdb/views.py b/tracdb/views.py index d8c296975..69fe54bfb 100644 --- a/tracdb/views.py +++ b/tracdb/views.py @@ -9,11 +9,9 @@ def bouncing_tickets(request): c = db.connections["trac"].cursor() - c.execute( - """SELECT * FROM bouncing_tickets + c.execute("""SELECT * FROM bouncing_tickets WHERE times_reopened >= 3 - ORDER BY last_reopen_time DESC""" - ) + ORDER BY last_reopen_time DESC""") tickets = dictfetchall(c) # Fix timestamps. LOLTrac.