stricter linting

This commit is contained in:
Vladimir Mandic
2023-03-30 12:11:18 -04:00
parent 645e31a4fe
commit 61032b8d9b
6 changed files with 6 additions and 5 deletions
+1 -1
View File
@@ -1,3 +1,3 @@
# See https://pylint.pycqa.org/en/latest/user_guide/messages/message_control.html
[MESSAGES CONTROL]
disable=C,R,W,E,I
disable=C,R,W
+1 -1
View File
@@ -12,7 +12,7 @@ import numpy as np
import piexif
import piexif.helper
from PIL import Image, ImageFont, ImageDraw, PngImagePlugin, ExifTags
from fonts.ttf import Roboto
from fonts.ttf import Roboto # pylint: disable=no-name-in-module
import string
import json
import hashlib
+1
View File
@@ -2,6 +2,7 @@ import re
from collections import namedtuple
from typing import List
import lark
import shared
# a prompt like this: "fantasy landscape with a [mountain:lake:0.25] and [an oak:a christmas tree:0.75][ in foreground::0.6][ in background:0.25] [shoddy:masterful:0.5]"
# will be represented with prompt_schedule like this (assuming steps=100):
+1 -1
View File
@@ -29,7 +29,6 @@ try:
traceback_install(console=console, extra_lines=1, width=console.width, word_wrap=False, indent_guides=False, show_locals=False, max_frames=2)
except:
console = None
import traceback
script_loading.preload_extensions(extensions_dir, parser)
script_loading.preload_extensions(extensions_builtin_dir, parser)
@@ -671,4 +670,5 @@ def exception():
if console is not None:
console.print_exception(show_locals=False, max_frames=10, extra_lines=2, suppress=[gr], word_wrap=False, width=min([console.width, 200]))
else:
import traceback
print(traceback.format_exc(), file=sys.stderr)