Make isort happy…

This commit is contained in:
Martin Pépin 2020-07-18 18:13:47 +02:00
parent 22846890b1
commit 445f6920f8
No known key found for this signature in database
GPG key ID: E7520278B1774448
9 changed files with 6 additions and 12 deletions

View file

@ -1,7 +1,7 @@
from django import forms from django import forms
from django.contrib.auth import forms as auth_forms, authenticate from django.contrib.auth import authenticate, forms as auth_forms
from django.utils.translation import gettext_lazy as _
from django.utils import timezone from django.utils import timezone
from django.utils.translation import gettext_lazy as _
def promo_choices(): def promo_choices():

View file

@ -1,8 +1,7 @@
# Generated by Django 3.0.6 on 2020-05-17 11:58 # Generated by Django 3.0.6 on 2020-05-17 11:58
import django.db.models.deletion
from django.conf import settings from django.conf import settings
from django.db import migrations, models from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration): class Migration(migrations.Migration):

View file

@ -1,8 +1,7 @@
# Generated by Django 3.0.6 on 2020-06-12 17:26 # Generated by Django 3.0.6 on 2020-06-12 17:26
import django.db.models.deletion
from django.conf import settings from django.conf import settings
from django.db import migrations, models from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration): class Migration(migrations.Migration):

View file

@ -2,7 +2,6 @@
# TODO: make the python-ldap dependency optional # TODO: make the python-ldap dependency optional
import ldap import ldap
from django.conf import settings from django.conf import settings
from django.contrib.auth import get_user_model from django.contrib.auth import get_user_model

View file

@ -1,7 +1,7 @@
"""Internal utility functions used by authens.""" """Internal utility functions used by authens."""
from urllib.parse import urlunparse
from cas import CASClient from cas import CASClient
from urllib.parse import urlunparse
def get_cas_client(request): def get_cas_client(request):

View file

@ -6,9 +6,9 @@ from django.contrib.auth import views as auth_views
from django.contrib.messages.views import SuccessMessageMixin from django.contrib.messages.views import SuccessMessageMixin
from django.core.exceptions import PermissionDenied from django.core.exceptions import PermissionDenied
from django.shortcuts import redirect from django.shortcuts import redirect
from django.urls import reverse_lazy
from django.utils import timezone from django.utils import timezone
from django.utils.translation import gettext_lazy as _ from django.utils.translation import gettext_lazy as _
from django.urls import reverse_lazy
from django.views.generic import TemplateView, View from django.views.generic import TemplateView, View
from authens.forms import OldCASAuthForm from authens.forms import OldCASAuthForm

View file

@ -15,7 +15,6 @@ Including another URLconf
""" """
from django.contrib import admin from django.contrib import admin
from django.urls import include, path from django.urls import include, path
from example import views from example import views
urlpatterns = [ urlpatterns = [

View file

@ -19,5 +19,4 @@ known_django = django
known_first_party = authens,tests known_first_party = authens,tests
line_length = 88 line_length = 88
multi_line_output = 3 multi_line_output = 3
not_skip = __init__.py
sections = FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER sections = FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER

View file

@ -2,7 +2,6 @@ from django.contrib.auth.decorators import login_required
from django.http import HttpResponse from django.http import HttpResponse
from django.urls import include, path from django.urls import include, path
# --- # ---
# Two tiny views to easily test user authentication. # Two tiny views to easily test user authentication.
# --- # ---