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:
parent
2cdbddca09
commit
1a0fbac76c
3 changed files with 3 additions and 1 deletions
|
@ -18,6 +18,7 @@ class StyledForm(ModelForm):
|
||||||
# pylint: disable=super-with-arguments
|
# pylint: disable=super-with-arguments
|
||||||
super().__init__(*args, **kwargs)
|
super().__init__(*args, **kwargs)
|
||||||
for visible in self.visible_fields():
|
for visible in self.visible_fields():
|
||||||
|
input_type = ""
|
||||||
if hasattr(visible.field.widget, "input_type"):
|
if hasattr(visible.field.widget, "input_type"):
|
||||||
input_type = visible.field.widget.input_type
|
input_type = visible.field.widget.input_type
|
||||||
if isinstance(visible.field.widget, Textarea):
|
if isinstance(visible.field.widget, Textarea):
|
||||||
|
|
|
@ -88,6 +88,7 @@ class CeleryStatus(View):
|
||||||
def post(self, request):
|
def post(self, request):
|
||||||
"""Submit form to clear queues"""
|
"""Submit form to clear queues"""
|
||||||
form = ClearCeleryForm(request.POST)
|
form = ClearCeleryForm(request.POST)
|
||||||
|
results = []
|
||||||
if form.is_valid():
|
if form.is_valid():
|
||||||
if len(celery.control.ping()) != 0:
|
if len(celery.control.ping()) != 0:
|
||||||
return HttpResponse(
|
return HttpResponse(
|
||||||
|
|
|
@ -48,7 +48,7 @@ black==22.*
|
||||||
celery-types==0.22.0
|
celery-types==0.22.0
|
||||||
django-stubs[compatible-mypy]==4.2.7
|
django-stubs[compatible-mypy]==4.2.7
|
||||||
mypy==1.7.1
|
mypy==1.7.1
|
||||||
pylint==2.17.7
|
pylint==3.2.6
|
||||||
pytest==8.1.1
|
pytest==8.1.1
|
||||||
pytest-cov==5.0.0
|
pytest-cov==5.0.0
|
||||||
pytest-django==4.8.0
|
pytest-django==4.8.0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue