mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Run black
This commit is contained in:
parent
1dc913c5c1
commit
461ef19a46
5 changed files with 85 additions and 25 deletions
|
@ -1,20 +1,33 @@
|
||||||
from .adw_breakpoint import (AdwBreakpointCondition, AdwBreakpointSetter,
|
from .adw_breakpoint import (
|
||||||
AdwBreakpointSetters)
|
AdwBreakpointCondition,
|
||||||
|
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 (CastExpr, ClosureArg, ClosureExpr, ExprBase,
|
from .expression import (
|
||||||
Expression, LiteralExpr, LookupOp)
|
CastExpr,
|
||||||
|
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 (Filters, ext_file_filter_mime_types,
|
from .gtk_file_filter import (
|
||||||
|
Filters,
|
||||||
|
ext_file_filter_mime_types,
|
||||||
ext_file_filter_patterns,
|
ext_file_filter_patterns,
|
||||||
ext_file_filter_suffixes)
|
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
|
||||||
|
@ -27,9 +40,19 @@ 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 (Flag, Flags, IdentLiteral, Literal, NumberLiteral,
|
from .values import (
|
||||||
ObjectValue, QuotedLiteral, StringValue, Translated,
|
Flag,
|
||||||
TypeLiteral, Value)
|
Flags,
|
||||||
|
IdentLiteral,
|
||||||
|
Literal,
|
||||||
|
NumberLiteral,
|
||||||
|
ObjectValue,
|
||||||
|
QuotedLiteral,
|
||||||
|
StringValue,
|
||||||
|
Translated,
|
||||||
|
TypeLiteral,
|
||||||
|
Value,
|
||||||
|
)
|
||||||
|
|
||||||
OBJECT_CONTENT_HOOKS.children = [
|
OBJECT_CONTENT_HOOKS.children = [
|
||||||
Signal,
|
Signal,
|
||||||
|
|
|
@ -22,15 +22,39 @@ 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 (DecompileCtx, decompile_translatable, decompiler,
|
from ..decompiler import (
|
||||||
escape_quote, truthy)
|
DecompileCtx,
|
||||||
from ..errors import (CodeAction, CompileError, CompileWarning,
|
decompile_translatable,
|
||||||
DeprecatedWarning, MultipleErrors, UpgradeWarning)
|
decompiler,
|
||||||
from ..gir import (BoolType, Enumeration, ExternType, FloatType, GirType,
|
escape_quote,
|
||||||
IntType, StringType)
|
truthy,
|
||||||
from ..lsp_utils import (Completion, CompletionItemKind, DocumentSymbol,
|
)
|
||||||
LocationLink, SemanticToken, SemanticTokenType,
|
from ..errors import (
|
||||||
SymbolKind)
|
CodeAction,
|
||||||
|
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()
|
||||||
|
|
|
@ -23,8 +23,13 @@ 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 (CompileError, CompilerBugError, CompileWarning,
|
from .errors import (
|
||||||
UnexpectedTokenError, assert_true)
|
CompileError,
|
||||||
|
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,8 +9,12 @@ 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 (CompileError, CompilerBugError,
|
from blueprintcompiler.errors import (
|
||||||
MultipleErrors, PrintableError)
|
CompileError,
|
||||||
|
CompilerBugError,
|
||||||
|
MultipleErrors,
|
||||||
|
PrintableError,
|
||||||
|
)
|
||||||
from blueprintcompiler.tokenizer import Token, TokenType, tokenize
|
from blueprintcompiler.tokenizer import Token, TokenType, tokenize
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -29,8 +29,12 @@ 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 (CompileError, DeprecatedWarning,
|
from blueprintcompiler.errors import (
|
||||||
MultipleErrors, PrintableError)
|
CompileError,
|
||||||
|
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