Skip to content

Commit 72be860

Browse files
authored
Merge pull request #585 from jazzband/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2 parents f4286f5 + 9b60339 commit 72be860

File tree

14 files changed

+14
-1
lines changed

14 files changed

+14
-1
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ repos:
66
- id: end-of-file-fixer
77
- id: trailing-whitespace
88
- repo: https://github.com/astral-sh/ruff-pre-commit
9-
rev: v0.2.2
9+
rev: v0.3.2
1010
hooks:
1111
- id: ruff
1212
args:

example/example/wsgi.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
framework.
1414
1515
"""
16+
1617
import os
1718

1819
# This application object is used by any WSGI server configured to use this

example/pexp/management/commands/p2cmd.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
This module is a scratchpad for general development, testing & debugging
33
Well, even more so than pcmd.py. You best ignore p2cmd.py.
44
"""
5+
56
import sys
67
import time
78
from pprint import pprint

polymorphic/admin/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
The admin consists of a parent admin (which shows in the admin with a list),
55
and a child admin (which is used internally to show the edit/delete dialog).
66
"""
7+
78
# Admins for the regular models
89
from .parentadmin import PolymorphicParentModelAdmin # noqa
910
from .childadmin import PolymorphicChildModelAdmin

polymorphic/admin/childadmin.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
The child admin displays the change/delete view of the subclass model.
33
"""
4+
45
import inspect
56

67
from django.contrib import admin

polymorphic/admin/helpers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
44
This makes sure that admin fieldsets/layout settings are exported to the template.
55
"""
6+
67
import json
78

89
from django.contrib.admin.helpers import AdminField, InlineAdminForm, InlineAdminFormSet

polymorphic/admin/inlines.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
44
Each row in the inline can correspond with a different subclass.
55
"""
6+
67
from functools import partial
78

89
from django.conf import settings

polymorphic/admin/parentadmin.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
The parent admin displays the list view of the base model.
33
"""
4+
45
from django.contrib import admin
56
from django.contrib.admin.helpers import AdminErrorList, AdminForm
67
from django.contrib.admin.templatetags.admin_urls import add_preserved_filters

polymorphic/base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
PolymorphicModel Meta Class
33
"""
4+
45
import inspect
56
import os
67
import sys

polymorphic/contrib/extra_views.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
55
This package provides classes that support both options for polymorphic formsets.
66
"""
7+
78
import extra_views
89
from django.core.exceptions import ImproperlyConfigured
910

0 commit comments

Comments
 (0)