pylint: upgrade to 3.2.6

This only requires fixing:

    E0606: Possibly using variable 'results' before assignment
    E0606: Possibly using variable 'input_type' before assignment
This commit is contained in:
Adeodato Simó 2024-07-27 03:29:50 -03:00
parent 2cdbddca09
commit 1a0fbac76c
3 changed files with 3 additions and 1 deletions

View file

@ -18,6 +18,7 @@ class StyledForm(ModelForm):
# pylint: disable=super-with-arguments
super().__init__(*args, **kwargs)
for visible in self.visible_fields():
input_type = ""
if hasattr(visible.field.widget, "input_type"):
input_type = visible.field.widget.input_type
if isinstance(visible.field.widget, Textarea):

View file

@ -88,6 +88,7 @@ class CeleryStatus(View):
def post(self, request):
"""Submit form to clear queues"""
form = ClearCeleryForm(request.POST)
results = []
if form.is_valid():
if len(celery.control.ping()) != 0:
return HttpResponse(

View file

@ -48,7 +48,7 @@ black==22.*
celery-types==0.22.0
django-stubs[compatible-mypy]==4.2.7
mypy==1.7.1
pylint==2.17.7
pylint==3.2.6
pytest==8.1.1
pytest-cov==5.0.0
pytest-django==4.8.0