Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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
6 changes: 2 additions & 4 deletions docs/tests/test_templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -57,8 +56,7 @@ def band_listing(request):
return render(request, 'bands/band_listing.html', {'bands': bands})

{% endpygment %}
'''
)
''')
self.assertHTMLEqual(
template.render(Context()),
"""
Expand Down
1 change: 1 addition & 0 deletions manage.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""

import os
import sys

Expand Down
6 changes: 2 additions & 4 deletions members/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
<a href="https://www.djangoproject.com/foundation/corporate-members/">
corporate membership page</a>; 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?"
)
Expand Down
6 changes: 2 additions & 4 deletions tracdb/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Loading