Skip to content

Commit cd14d03

Browse files
fix(validator): remove unused import
1 parent 2e091d0 commit cd14d03

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

qgis-app/plugins/validator.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,10 @@
1414

1515
import requests
1616
from django.conf import settings
17-
from django.core.files.uploadedfile import (
18-
InMemoryUploadedFile,
19-
SimpleUploadedFile,
20-
TemporaryUploadedFile,
21-
)
17+
from django.core.files.uploadedfile import SimpleUploadedFile
2218
from django.forms import ValidationError
2319
from django.utils.translation import gettext_lazy as _
2420

25-
from .celery import app
26-
2721
PLUGIN_MAX_UPLOAD_SIZE = getattr(settings, "PLUGIN_MAX_UPLOAD_SIZE", 25000000) # 25 mb
2822
PLUGIN_REQUIRED_METADATA = getattr(
2923
settings,
@@ -230,7 +224,6 @@ def validator(package, is_new: bool = False):
230224
* New plugins package_name is PEP8 compliant
231225
232226
"""
233-
234227
try:
235228
if package.size > PLUGIN_MAX_UPLOAD_SIZE:
236229
raise ValidationError(
@@ -278,7 +271,6 @@ def validator(package, is_new: bool = False):
278271
% (forbidden_dir, zname)
279272
)
280273
)
281-
282274
bad_file = zip.testzip()
283275
if bad_file:
284276
zip.close()
@@ -506,4 +498,4 @@ def validator(package, is_new: bool = False):
506498
)
507499
% (k, e)
508500
)
509-
return checked_metadata
501+
return checked_metadata

0 commit comments

Comments
 (0)