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] authored and bmispelon committed Apr 19, 2024
1 parent b069896 commit 70af678
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Send an email to settings.FEED_APPROVERS with the feeds that need to
be manually approved.
"""

from django.conf import settings
from django.contrib.auth.models import User
from django.core import mail
Expand Down
1 change: 1 addition & 0 deletions docs/management/commands/update_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Update and build the documentation into files for display with the djangodocs
app.
"""

import json
import os
import shutil
Expand Down
1 change: 1 addition & 0 deletions legacy/urls.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Legacy URLs for documentation pages.
"""

from functools import partial

from django.urls import path
Expand Down
22 changes: 12 additions & 10 deletions members/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,16 @@ def __init__(self, *args, **kwargs):
self.fields["billing_name"].widget.attrs[
"placeholder"
] = "Billing name (If different from above name)."
self.fields[
"billing_name"
].help_text = "For example, this might be your full registered company name."
self.fields["billing_name"].help_text = (
"For example, this might be your full registered company name."
)
self.fields["display_name"].widget.attrs[
"placeholder"
] = "Your organization's name as you'd like it to appear on our website."
self.fields["address"].widget.attrs["placeholder"] = "Mailing address"
self.fields[
"address"
].help_text = "We can send the invoice by email, but we need a contact address."
self.fields["address"].help_text = (
"We can send the invoice by email, but we need a contact address."
)
self.fields["description"].widget.attrs["placeholder"] = (
"A short paragraph that describes your organization and its "
"activities, written as if the DSF were describing your company "
Expand Down Expand Up @@ -104,10 +104,12 @@ def save(self, *args, **kwargs):
"Thanks for %s a corporate member of the Django Software Foundation! %s"
% (
"renewing as" if is_renewing else "applying to be",
"Your renewal is received, and we'll follow up with an invoice soon."
if is_renewing
else "Your application is being reviewed, and we'll follow up a "
"response from the board after our next monthly meeting.",
(
"Your renewal is received, and we'll follow up with an invoice soon."
if is_renewing
else "Your application is being reviewed, and we'll follow up a "
"response from the board after our next monthly meeting."
),
),
settings.FUNDRAISING_DEFAULT_FROM_EMAIL,
[
Expand Down
1 change: 1 addition & 0 deletions svntogit/urls.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Legacy URLs for changesets.
"""

from django.urls import path

from .views import redirect_to_github
Expand Down
1 change: 1 addition & 0 deletions tracdb/db_router.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
It's very simplistic, leaving off allow_relation and allow_migrate since all
the Trac apps are unmanaged.
"""

THIS_APP = "tracdb"


Expand Down
1 change: 1 addition & 0 deletions tracdb/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
* NodeChange: Ditto.
"""

import datetime

from django.db import models
Expand Down
1 change: 1 addition & 0 deletions tracdb/stats.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Various queries for grabbing interesting user stats from Trac.
"""

import operator
from collections import OrderedDict

Expand Down

0 comments on commit 70af678

Please sign in to comment.