Skip to content

Commit

Permalink
Merge pull request #585 from jazzband/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
j-antunes authored Mar 18, 2024
2 parents f4286f5 + 9b60339 commit 72be860
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.2.2
rev: v0.3.2
hooks:
- id: ruff
args:
Expand Down
1 change: 1 addition & 0 deletions example/example/wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
framework.
"""

import os

# This application object is used by any WSGI server configured to use this
Expand Down
1 change: 1 addition & 0 deletions example/pexp/management/commands/p2cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
This module is a scratchpad for general development, testing & debugging
Well, even more so than pcmd.py. You best ignore p2cmd.py.
"""

import sys
import time
from pprint import pprint
Expand Down
1 change: 1 addition & 0 deletions polymorphic/admin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
The admin consists of a parent admin (which shows in the admin with a list),
and a child admin (which is used internally to show the edit/delete dialog).
"""

# Admins for the regular models
from .parentadmin import PolymorphicParentModelAdmin # noqa
from .childadmin import PolymorphicChildModelAdmin
Expand Down
1 change: 1 addition & 0 deletions polymorphic/admin/childadmin.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
The child admin displays the change/delete view of the subclass model.
"""

import inspect

from django.contrib import admin
Expand Down
1 change: 1 addition & 0 deletions polymorphic/admin/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
This makes sure that admin fieldsets/layout settings are exported to the template.
"""

import json

from django.contrib.admin.helpers import AdminField, InlineAdminForm, InlineAdminFormSet
Expand Down
1 change: 1 addition & 0 deletions polymorphic/admin/inlines.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Each row in the inline can correspond with a different subclass.
"""

from functools import partial

from django.conf import settings
Expand Down
1 change: 1 addition & 0 deletions polymorphic/admin/parentadmin.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
The parent admin displays the list view of the base model.
"""

from django.contrib import admin
from django.contrib.admin.helpers import AdminErrorList, AdminForm
from django.contrib.admin.templatetags.admin_urls import add_preserved_filters
Expand Down
1 change: 1 addition & 0 deletions polymorphic/base.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
PolymorphicModel Meta Class
"""

import inspect
import os
import sys
Expand Down
1 change: 1 addition & 0 deletions polymorphic/contrib/extra_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
This package provides classes that support both options for polymorphic formsets.
"""

import extra_views
from django.core.exceptions import ImproperlyConfigured

Expand Down
1 change: 1 addition & 0 deletions polymorphic/formsets/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
that describes how to display and construct the child.
It's parameters are very similar to the parent's factory method.
"""

from .generic import ( # Can import generic here, as polymorphic already depends on the 'contenttypes' app.
BaseGenericPolymorphicInlineFormSet,
GenericPolymorphicFormSetChild,
Expand Down
1 change: 1 addition & 0 deletions polymorphic/models.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Seamless Polymorphic Inheritance for Django Models
"""

from django.contrib.contenttypes.models import ContentType
from django.db import models
from django.db.models.fields.related import ForwardManyToOneDescriptor, ReverseOneToOneDescriptor
Expand Down
1 change: 1 addition & 0 deletions polymorphic/query.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
QuerySet for PolymorphicModel
"""

import copy
from collections import defaultdict

Expand Down
1 change: 1 addition & 0 deletions polymorphic/query_translate.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
PolymorphicQuerySet support functions
"""

import copy
from collections import deque

Expand Down

0 comments on commit 72be860

Please sign in to comment.