mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 17:24:32 +02:00
stricter linting
This commit is contained in:
@@ -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
|
||||
|
||||
Submodule extensions-builtin/seed_travel updated: dbc8c52912...3e217f28b8
+1
-1
@@ -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
-1
Submodule modules/lycoris updated: 932e83ca6f...c3d9254212
@@ -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
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user