Skip to content

Commit

Permalink
fix: mypy/flakes lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jennifer-richards authored and NGPixel committed May 14, 2024
1 parent f58bbc3 commit 253ba1d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions ietf/secr/meetings/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,11 @@


import datetime
import os
import shutil

from pyquery import PyQuery

import debug # pyflakes:ignore

from django.conf import settings
from django.urls import reverse
from django.utils import timezone

Expand Down
2 changes: 1 addition & 1 deletion ietf/utils/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
logging.StreamHandler(),
]
for h in handlers:
h.setFormatter(formatter)
h.setFormatter(formatter) # type: ignore
h.setLevel(level)
logger.addHandler(h)
debug.say(" Setting %s logging level to %s" % (logger.name, level))
Expand Down
2 changes: 1 addition & 1 deletion ietf/utils/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def validate_file_size(file, missing_ok=False):
if size > settings.DATATRACKER_MAX_UPLOAD_SIZE:
raise ValidationError(
"Please keep filesize under {}. Requested upload size was {}".format(
filesizeformat(settings.DATATRACKE_MAX_UPLOAD_SIZE),
filesizeformat(settings.DATATRACKER_MAX_UPLOAD_SIZE),
filesizeformat(file.size)
)
)
Expand Down

0 comments on commit 253ba1d

Please sign in to comment.