Skip to content

Commit

Permalink
Flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
judtinzhang committed Nov 5, 2023
1 parent a0a4b10 commit 1e5e796
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
3 changes: 2 additions & 1 deletion backend/accounts/migrations/0004_user_profile_pic.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Generated by Django 4.1.3 on 2022-11-10 02:05

import accounts.models
from django.db import migrations, models

import accounts.models


class Migration(migrations.Migration):
dependencies = [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Generated by Django 3.2.9 on 2023-03-04 21:59

import django.db.models.deletion
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):
Expand Down
1 change: 1 addition & 0 deletions backend/identity/urls.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from django.urls import path

from identity.views import AttestView, JwksInfoView, RefreshJWTView


Expand Down
7 changes: 4 additions & 3 deletions backend/identity/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,16 @@
from django.utils.text import slugify
from django.views.decorators.csrf import csrf_exempt
from django.views.generic import View
from jwcrypto import jwt
from oauth2_provider.settings import oauth2_settings
from oauth2_provider.views.mixins import OAuthLibMixin

from identity.utils import (
ID_PRIVATE_KEY,
SIGNING_ALG,
mint_access_jwt,
mint_refresh_jwt,
)
from jwcrypto import jwt
from oauth2_provider.settings import oauth2_settings
from oauth2_provider.views.mixins import OAuthLibMixin


@method_decorator(csrf_exempt, name="dispatch")
Expand Down
4 changes: 2 additions & 2 deletions backend/tests/identity/test_views.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import base64
import json
import time
from http import HTTPStatus
Expand All @@ -7,10 +6,11 @@
from django.contrib.auth import get_user_model
from django.test import Client, TestCase
from django.urls import reverse
from identity.views import SIGNING_ALG
from jwcrypto import jwk, jwt
from oauth2_provider.models import get_application_model

from identity.views import SIGNING_ALG


class AttestTestCase(TestCase):
def setUp(self):
Expand Down

0 comments on commit 1e5e796

Please sign in to comment.