Skip to content

Commit 476356c

Browse files
authored
🎀 Autoformat code with pre-commit hooks
PR #297
1 parent 53f93e2 commit 476356c

File tree

31 files changed

+37
-6
lines changed

31 files changed

+37
-6
lines changed

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,4 +302,4 @@ def setup(app):
302302

303303
# -- Linkcheck configuration -----------------------------------------------
304304

305-
linkcheck_ignore = [re.compile(r'https://djangopackages\.org/.*')]
305+
linkcheck_ignore = [re.compile(r"https://djangopackages\.org/.*")]

example_extension_project/config/urls.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Extension project URL Configuration"""
2+
23
from django.contrib import admin
34

45
try:

example_extension_project/user_extension/admin.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Demonstrate use of UserAdmin on extended User model"""
2+
23
from django.contrib import admin
34
from django.contrib.auth import get_user_model
45

example_extension_project/user_extension/apps.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Application Definition File"""
2+
23
from django.apps import AppConfig
34

45

example_extension_project/user_extension/factories.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
Demonstrated here to ensure that Improved User Factory can be subclassed.
44
55
"""
6+
67
from factory import Faker
78

89
from improved_user.factories import UserFactory as BaseUserFactory

example_extension_project/user_extension/models.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Demonstration of how to extend the Improved User model"""
2+
23
from django.db import models
34
from django.utils.translation import gettext_lazy as _
45

example_extension_project/user_extension/tests.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Tests to ensure proper subclassing of models, forms, and factories"""
2+
23
from unittest.mock import patch
34

45
from django.contrib.auth import get_user_model

example_integration_project/config/urls.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Integration project URL Configuration"""
2+
23
from django.contrib import admin
34
from django.urls import re_path
45
from django.views.generic import TemplateView

example_integration_project/user_integration/apps.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Application Definition File"""
2+
23
from django.apps import AppConfig
34

45

example_integration_project/user_integration/tests.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
33
This test suite is legacy, and will be replaced in the near future.
44
"""
5+
56
from django.contrib.auth import get_user_model
67
from django.test import TestCase
78
from django.urls import reverse

0 commit comments

Comments
 (0)