mirror of
https://github.com/1j01/textual-paint.git
synced 2024-09-11 15:56:03 +03:00
Run "Organize Imports" on all files
I used a very dangerous extension that has a lot of include/exclude options that are unclear how they interact, and it doesn't apparently respect your gitignore settings, and it has no no preview or warning. "commandOnAllFiles.excludeFolders": ["node_modules", "out", ".vscode-test", "media", ".git", ".history", ".venv", ".venv*", ".*"], "commandOnAllFiles.commands": { "Organize Imports": { "command": "editor.action.organizeImports", "includeFileExtensions": [".py"], "includeFolders": ["src"] } },
This commit is contained in:
parent
580da11949
commit
690b969fa4
@ -19,9 +19,8 @@ from textual.geometry import Offset, Region
|
||||
|
||||
from textual_paint.export_templates import (CUSTOM_CONSOLE_HTML_FORMAT,
|
||||
CUSTOM_CONSOLE_SVG_FORMAT)
|
||||
from textual_paint.palette_data import IRC_PALETTE
|
||||
|
||||
from textual_paint.localization.i18n import get as _
|
||||
from textual_paint.palette_data import IRC_PALETTE
|
||||
|
||||
DEBUG_REGION_UPDATES = False
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
import os
|
||||
import json
|
||||
import os
|
||||
import re
|
||||
|
||||
translations: dict[str, str] = {}
|
||||
|
@ -3,6 +3,7 @@
|
||||
|
||||
import re
|
||||
|
||||
|
||||
def parse_rc_file(rc_file_text: str) -> list[str]:
|
||||
"""
|
||||
Parses a Windows RC file and returns a list of strings.
|
||||
|
@ -1,12 +1,11 @@
|
||||
import os
|
||||
import re
|
||||
import glob
|
||||
import json
|
||||
from typing import Generator, Any
|
||||
import os
|
||||
import re
|
||||
from typing import Any, Generator
|
||||
|
||||
from .parse_rc_file import parse_rc_file
|
||||
|
||||
|
||||
base_lang: str = "en"
|
||||
available_langs: list[str] = [dir for dir in os.listdir(os.path.dirname(__file__)) if re.match(r"^\w+(-\w+)?$", dir)]
|
||||
target_langs: list[str] = [lang for lang in available_langs if lang != base_lang]
|
||||
|
@ -39,17 +39,21 @@ from textual.widgets._header import HeaderIcon
|
||||
from textual.worker import get_current_worker # type: ignore
|
||||
|
||||
from textual_paint.__init__ import __version__
|
||||
from textual_paint.ansi_art_document import (SAVE_DISABLED_FORMATS, AnsiArtDocument,
|
||||
FormatReadNotSupported,
|
||||
FormatWriteNotSupported, Selection)
|
||||
from textual_paint.ansi_art_document import (SAVE_DISABLED_FORMATS,
|
||||
AnsiArtDocument,
|
||||
FormatReadNotSupported,
|
||||
FormatWriteNotSupported,
|
||||
Selection)
|
||||
from textual_paint.args import args, get_help_text
|
||||
from textual_paint.auto_restart import restart_on_changes, restart_program
|
||||
from textual_paint.edit_colors import EditColorsDialogWindow
|
||||
from textual_paint.file_dialogs import OpenDialogWindow, SaveAsDialogWindow
|
||||
from textual_paint.graphics_primitives import (bezier_curve_walk, bresenham_walk,
|
||||
flood_fill, is_inside_polygon,
|
||||
midpoint_ellipse, polygon_walk,
|
||||
polyline_walk, quadratic_curve_walk)
|
||||
from textual_paint.graphics_primitives import (bezier_curve_walk,
|
||||
bresenham_walk, flood_fill,
|
||||
is_inside_polygon,
|
||||
midpoint_ellipse, polygon_walk,
|
||||
polyline_walk,
|
||||
quadratic_curve_walk)
|
||||
from textual_paint.localization.i18n import get as _
|
||||
from textual_paint.localization.i18n import load_language, remove_hotkey
|
||||
from textual_paint.menus import Menu, MenuBar, MenuItem, Separator
|
||||
@ -57,9 +61,9 @@ from textual_paint.palette_data import DEFAULT_PALETTE, IRC_PALETTE
|
||||
from textual_paint.rasterize_ansi_art import rasterize
|
||||
from textual_paint.scrollbars import ASCIIScrollBarRender
|
||||
from textual_paint.wallpaper import get_config_dir, set_wallpaper
|
||||
from textual_paint.windows import (CharacterSelectorDialogWindow, DialogWindow, MessageBox,
|
||||
Window, get_paint_icon, get_question_icon,
|
||||
get_warning_icon)
|
||||
from textual_paint.windows import (CharacterSelectorDialogWindow, DialogWindow,
|
||||
MessageBox, Window, get_paint_icon,
|
||||
get_question_icon, get_warning_icon)
|
||||
|
||||
MAX_FILE_SIZE = 500000 # 500 KB
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user