mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Run isort
This commit is contained in:
parent
ae363ed60b
commit
949ee638f6
6 changed files with 26 additions and 86 deletions
|
@ -1,33 +1,20 @@
|
||||||
from .adw_breakpoint import (
|
from .adw_breakpoint import (AdwBreakpointCondition, AdwBreakpointSetter,
|
||||||
AdwBreakpointCondition,
|
AdwBreakpointSetters)
|
||||||
AdwBreakpointSetter,
|
|
||||||
AdwBreakpointSetters,
|
|
||||||
)
|
|
||||||
from .adw_message_dialog import ExtAdwMessageDialog
|
from .adw_message_dialog import ExtAdwMessageDialog
|
||||||
from .attributes import BaseAttribute
|
from .attributes import BaseAttribute
|
||||||
from .binding import Binding
|
from .binding import Binding
|
||||||
from .common import *
|
from .common import *
|
||||||
from .contexts import ScopeCtx, ValueTypeCtx
|
from .contexts import ScopeCtx, ValueTypeCtx
|
||||||
from .expression import (
|
from .expression import (CastExpr, ClosureArg, ClosureExpr, ExprBase,
|
||||||
CastExpr,
|
Expression, LiteralExpr, LookupOp)
|
||||||
ClosureArg,
|
|
||||||
ClosureExpr,
|
|
||||||
ExprBase,
|
|
||||||
Expression,
|
|
||||||
LiteralExpr,
|
|
||||||
LookupOp,
|
|
||||||
)
|
|
||||||
from .gobject_object import Object, ObjectContent
|
from .gobject_object import Object, ObjectContent
|
||||||
from .gobject_property import Property
|
from .gobject_property import Property
|
||||||
from .gobject_signal import Signal
|
from .gobject_signal import Signal
|
||||||
from .gtk_a11y import ExtAccessibility
|
from .gtk_a11y import ExtAccessibility
|
||||||
from .gtk_combo_box_text import ExtComboBoxItems
|
from .gtk_combo_box_text import ExtComboBoxItems
|
||||||
from .gtk_file_filter import (
|
from .gtk_file_filter import (Filters, ext_file_filter_mime_types,
|
||||||
Filters,
|
ext_file_filter_patterns,
|
||||||
ext_file_filter_mime_types,
|
ext_file_filter_suffixes)
|
||||||
ext_file_filter_patterns,
|
|
||||||
ext_file_filter_suffixes,
|
|
||||||
)
|
|
||||||
from .gtk_layout import ExtLayout
|
from .gtk_layout import ExtLayout
|
||||||
from .gtk_list_item_factory import ExtListItemFactory
|
from .gtk_list_item_factory import ExtListItemFactory
|
||||||
from .gtk_menu import Menu, MenuAttribute, menu
|
from .gtk_menu import Menu, MenuAttribute, menu
|
||||||
|
@ -40,19 +27,9 @@ from .gtkbuilder_template import Template
|
||||||
from .imports import GtkDirective, Import
|
from .imports import GtkDirective, Import
|
||||||
from .types import ClassName
|
from .types import ClassName
|
||||||
from .ui import UI
|
from .ui import UI
|
||||||
from .values import (
|
from .values import (Flag, Flags, IdentLiteral, Literal, NumberLiteral,
|
||||||
Flag,
|
ObjectValue, QuotedLiteral, StringValue, Translated,
|
||||||
Flags,
|
TypeLiteral, Value)
|
||||||
IdentLiteral,
|
|
||||||
Literal,
|
|
||||||
NumberLiteral,
|
|
||||||
ObjectValue,
|
|
||||||
QuotedLiteral,
|
|
||||||
StringValue,
|
|
||||||
Translated,
|
|
||||||
TypeLiteral,
|
|
||||||
Value,
|
|
||||||
)
|
|
||||||
|
|
||||||
OBJECT_CONTENT_HOOKS.children = [
|
OBJECT_CONTENT_HOOKS.children = [
|
||||||
Signal,
|
Signal,
|
||||||
|
|
|
@ -22,39 +22,15 @@ from .. import decompiler as decompile
|
||||||
from .. import gir
|
from .. import gir
|
||||||
from ..ast_utils import AstNode, context, docs, validate
|
from ..ast_utils import AstNode, context, docs, validate
|
||||||
from ..completions_utils import *
|
from ..completions_utils import *
|
||||||
from ..decompiler import (
|
from ..decompiler import (DecompileCtx, decompile_translatable, decompiler,
|
||||||
DecompileCtx,
|
escape_quote, truthy)
|
||||||
decompile_translatable,
|
from ..errors import (CodeAction, CompileError, CompileWarning,
|
||||||
decompiler,
|
DeprecatedWarning, MultipleErrors, UpgradeWarning)
|
||||||
escape_quote,
|
from ..gir import (BoolType, Enumeration, ExternType, FloatType, GirType,
|
||||||
truthy,
|
IntType, StringType)
|
||||||
)
|
from ..lsp_utils import (Completion, CompletionItemKind, DocumentSymbol,
|
||||||
from ..errors import (
|
LocationLink, SemanticToken, SemanticTokenType,
|
||||||
CodeAction,
|
SymbolKind)
|
||||||
CompileError,
|
|
||||||
CompileWarning,
|
|
||||||
DeprecatedWarning,
|
|
||||||
MultipleErrors,
|
|
||||||
UpgradeWarning,
|
|
||||||
)
|
|
||||||
from ..gir import (
|
|
||||||
BoolType,
|
|
||||||
Enumeration,
|
|
||||||
ExternType,
|
|
||||||
FloatType,
|
|
||||||
GirType,
|
|
||||||
IntType,
|
|
||||||
StringType,
|
|
||||||
)
|
|
||||||
from ..lsp_utils import (
|
|
||||||
Completion,
|
|
||||||
CompletionItemKind,
|
|
||||||
DocumentSymbol,
|
|
||||||
LocationLink,
|
|
||||||
SemanticToken,
|
|
||||||
SemanticTokenType,
|
|
||||||
SymbolKind,
|
|
||||||
)
|
|
||||||
from ..parse_tree import *
|
from ..parse_tree import *
|
||||||
|
|
||||||
OBJECT_CONTENT_HOOKS = AnyOf()
|
OBJECT_CONTENT_HOOKS = AnyOf()
|
||||||
|
|
|
@ -22,13 +22,13 @@ import json
|
||||||
import sys
|
import sys
|
||||||
import traceback
|
import traceback
|
||||||
import typing as T
|
import typing as T
|
||||||
|
from difflib import SequenceMatcher
|
||||||
|
|
||||||
from . import decompiler, parser, tokenizer, utils, xml_reader
|
from . import decompiler, parser, tokenizer, utils, xml_reader
|
||||||
from .ast_utils import AstNode
|
from .ast_utils import AstNode
|
||||||
from .completions import complete
|
from .completions import complete
|
||||||
from .errors import CompileError, MultipleErrors
|
from .errors import CompileError, MultipleErrors
|
||||||
from .formatter import Format
|
from .formatter import Format
|
||||||
from difflib import SequenceMatcher
|
|
||||||
from .lsp_utils import *
|
from .lsp_utils import *
|
||||||
from .outputs.xml import XmlOutput
|
from .outputs.xml import XmlOutput
|
||||||
from .tokenizer import Token
|
from .tokenizer import Token
|
||||||
|
|
|
@ -23,13 +23,8 @@ import typing as T
|
||||||
from enum import Enum
|
from enum import Enum
|
||||||
|
|
||||||
from .ast_utils import AstNode
|
from .ast_utils import AstNode
|
||||||
from .errors import (
|
from .errors import (CompileError, CompilerBugError, CompileWarning,
|
||||||
CompileError,
|
UnexpectedTokenError, assert_true)
|
||||||
CompilerBugError,
|
|
||||||
CompileWarning,
|
|
||||||
UnexpectedTokenError,
|
|
||||||
assert_true,
|
|
||||||
)
|
|
||||||
from .tokenizer import Range, Token, TokenType
|
from .tokenizer import Range, Token, TokenType
|
||||||
|
|
||||||
SKIP_TOKENS = [TokenType.COMMENT, TokenType.WHITESPACE]
|
SKIP_TOKENS = [TokenType.COMMENT, TokenType.WHITESPACE]
|
||||||
|
|
|
@ -9,12 +9,8 @@ sys.path.insert(0, os.path.dirname(os.path.dirname(__file__)))
|
||||||
|
|
||||||
from blueprintcompiler import decompiler, gir, parser, tokenizer, utils
|
from blueprintcompiler import decompiler, gir, parser, tokenizer, utils
|
||||||
from blueprintcompiler.completions import complete
|
from blueprintcompiler.completions import complete
|
||||||
from blueprintcompiler.errors import (
|
from blueprintcompiler.errors import (CompileError, CompilerBugError,
|
||||||
CompileError,
|
MultipleErrors, PrintableError)
|
||||||
CompilerBugError,
|
|
||||||
MultipleErrors,
|
|
||||||
PrintableError,
|
|
||||||
)
|
|
||||||
from blueprintcompiler.tokenizer import Token, TokenType, tokenize
|
from blueprintcompiler.tokenizer import Token, TokenType, tokenize
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -29,12 +29,8 @@ from gi.repository import Gtk
|
||||||
|
|
||||||
from blueprintcompiler import decompiler, parser, tokenizer, utils
|
from blueprintcompiler import decompiler, parser, tokenizer, utils
|
||||||
from blueprintcompiler.completions import complete
|
from blueprintcompiler.completions import complete
|
||||||
from blueprintcompiler.errors import (
|
from blueprintcompiler.errors import (CompileError, DeprecatedWarning,
|
||||||
CompileError,
|
MultipleErrors, PrintableError)
|
||||||
DeprecatedWarning,
|
|
||||||
MultipleErrors,
|
|
||||||
PrintableError,
|
|
||||||
)
|
|
||||||
from blueprintcompiler.lsp import LanguageServer
|
from blueprintcompiler.lsp import LanguageServer
|
||||||
from blueprintcompiler.outputs.xml import XmlOutput
|
from blueprintcompiler.outputs.xml import XmlOutput
|
||||||
from blueprintcompiler.tokenizer import Token, TokenType, tokenize
|
from blueprintcompiler.tokenizer import Token, TokenType, tokenize
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue