linting
This commit is contained in:
parent
a9648c12b8
commit
a7294f309a
|
@ -1,7 +1,5 @@
|
|||
from typing import Any
|
||||
from django import forms
|
||||
from guild.models import NPC, PlaySession, Character, Reward
|
||||
from django.utils.translation import gettext as _
|
||||
|
||||
|
||||
class PlaySessionCharacterForm(forms.ModelMultipleChoiceField):
|
||||
|
|
|
@ -1,3 +1 @@
|
|||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
from datetime import date
|
||||
from django.urls import reverse
|
||||
from django.views.generic import TemplateView, ListView, DetailView
|
||||
from django.views.generic import TemplateView
|
||||
from django.views.generic.edit import CreateView
|
||||
from django.contrib.auth.mixins import LoginRequiredMixin
|
||||
from django.contrib.auth.models import User
|
||||
|
|
|
@ -1,11 +1,6 @@
|
|||
from typing import Any, Dict, Optional, Type
|
||||
from django.forms.models import BaseModelForm
|
||||
from django.http import HttpResponse
|
||||
from django.shortcuts import get_object_or_404
|
||||
from django.views.generic import TemplateView, ListView, DetailView
|
||||
from django.views.generic import ListView, DetailView
|
||||
from django.views.generic.edit import CreateView, UpdateView, DeleteView
|
||||
from django.contrib.auth.mixins import LoginRequiredMixin
|
||||
from guild.forms import PlaySessionForm
|
||||
|
||||
from guild.models import Adventure, PlaySession
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
from django.views.generic import TemplateView, ListView, DetailView
|
||||
from django.views.generic import ListView, DetailView
|
||||
from django.views.generic.edit import CreateView, UpdateView, DeleteView
|
||||
from django.contrib.auth.mixins import LoginRequiredMixin
|
||||
from django.db.models import Q
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
from django.views.generic import TemplateView, ListView, DetailView
|
||||
from django.views.generic import ListView, DetailView
|
||||
from django.views.generic.edit import CreateView, UpdateView, DeleteView
|
||||
from django.contrib.auth.mixins import LoginRequiredMixin
|
||||
from guild.models import NPC
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
from django.views.generic import TemplateView, ListView, DetailView
|
||||
from django.views.generic import DetailView
|
||||
from django.views.generic.edit import CreateView, UpdateView, DeleteView
|
||||
from django.contrib.auth.mixins import LoginRequiredMixin
|
||||
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
from typing import Any, Dict, Optional, Type
|
||||
from django.forms.models import BaseModelForm
|
||||
from django.http import HttpResponse
|
||||
from django.shortcuts import get_object_or_404
|
||||
from django.urls import reverse
|
||||
from django.views.generic import TemplateView, ListView, DetailView
|
||||
from django.views.generic import DetailView
|
||||
from django.views.generic.edit import CreateView, UpdateView, DeleteView
|
||||
from django.contrib.auth.mixins import LoginRequiredMixin
|
||||
from guild.forms import PlaySessionForm, RewardForm
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
from django.views.generic import TemplateView, ListView, DetailView
|
||||
from django.views.generic import DetailView
|
||||
from django.views.generic.edit import CreateView, UpdateView, DeleteView
|
||||
from django.contrib.auth.mixins import LoginRequiredMixin
|
||||
from django.urls import reverse
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# ruff: noqa
|
||||
|
||||
import os
|
||||
from .default import *
|
||||
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
[tool.ruff]
|
||||
# Allow lines to be as long as 120 characters.
|
||||
line-length = 120
|
Loading…
Reference in New Issue