forked from DGNum/gestioCOF
core -- Fix flake8 errors
This commit is contained in:
parent
fdd2b35289
commit
402b544393
13 changed files with 16 additions and 23 deletions
|
@ -1,3 +0,0 @@
|
|||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
|
@ -7,4 +7,4 @@ class KFetCMSAppConfig(AppConfig):
|
|||
verbose_name = "CMS K-Fêt"
|
||||
|
||||
def ready(self):
|
||||
from . import hooks
|
||||
from . import hooks # noqa
|
||||
|
|
|
@ -219,7 +219,7 @@ class CheckoutStatementCreateForm(forms.ModelForm):
|
|||
or self.cleaned_data["balance_500"] is None
|
||||
):
|
||||
raise ValidationError(
|
||||
"Y'a un problème. Si tu comptes la caisse, mets au moins des 0 stp (et t'as pas idée de comment c'est long de vérifier que t'as mis des valeurs de partout...)"
|
||||
"Y'a un problème. Si tu comptes la caisse, mets au moins des 0 stp."
|
||||
)
|
||||
super().clean()
|
||||
|
||||
|
|
|
@ -8,7 +8,6 @@ from django.db import models, transaction
|
|||
from django.db.models import F
|
||||
from django.urls import reverse
|
||||
from django.utils import timezone
|
||||
from django.utils.six.moves import reduce
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
from gestioncof.models import CofProfile
|
||||
|
@ -164,7 +163,7 @@ class Account(models.Model):
|
|||
pattern = re.compile("^[^a-z]{3}$")
|
||||
data["is_valid"] = pattern.match(trigramme) and True or False
|
||||
try:
|
||||
account = Account.objects.get(trigramme=trigramme)
|
||||
Account.objects.get(trigramme=trigramme)
|
||||
except Account.DoesNotExist:
|
||||
data["is_free"] = True
|
||||
return data
|
||||
|
|
|
@ -2,7 +2,6 @@ import ast
|
|||
import heapq
|
||||
import statistics
|
||||
from collections import defaultdict
|
||||
from datetime import timedelta
|
||||
from decimal import Decimal
|
||||
from urllib.parse import urlencode
|
||||
|
||||
|
@ -10,12 +9,10 @@ from django.contrib import messages
|
|||
from django.contrib.auth.decorators import login_required, permission_required
|
||||
from django.contrib.auth.models import Permission, User
|
||||
from django.contrib.messages.views import SuccessMessageMixin
|
||||
from django.core.cache import cache
|
||||
from django.core.exceptions import PermissionDenied
|
||||
from django.core.urlresolvers import reverse, reverse_lazy
|
||||
from django.db import transaction
|
||||
from django.db.models import Count, F, Prefetch, Sum
|
||||
from django.db.models.functions import Coalesce
|
||||
from django.forms import formset_factory
|
||||
from django.http import Http404, JsonResponse
|
||||
from django.shortcuts import get_object_or_404, redirect, render
|
||||
|
@ -30,7 +27,6 @@ from kfet import consumers
|
|||
from kfet.config import kfet_config
|
||||
from kfet.decorators import teamkfet_required
|
||||
from kfet.forms import (
|
||||
AccountBalanceForm,
|
||||
AccountForm,
|
||||
AccountNegativeForm,
|
||||
AccountNoTriForm,
|
||||
|
@ -80,7 +76,7 @@ from kfet.models import (
|
|||
Transfer,
|
||||
TransferGroup,
|
||||
)
|
||||
from kfet.statistic import ScaleMixin, WeekScale, last_stats_manifest, tot_ventes
|
||||
from kfet.statistic import ScaleMixin, WeekScale, last_stats_manifest
|
||||
|
||||
from .auth.views import ( # noqa
|
||||
AccountGroupCreate,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue