Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 27, 2024
1 parent dc31838 commit d5f331b
Show file tree
Hide file tree
Showing 16 changed files with 115 additions and 25 deletions.
12 changes: 10 additions & 2 deletions src/python/py_proto/proto_enum.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,17 @@
ProtoMultiLineComment,
ProtoSingleLineComment,
)
from src.python.py_proto.proto_identifier import ParsedProtoIdentifierNode, ProtoIdentifier
from src.python.py_proto.proto_identifier import (
ParsedProtoIdentifierNode,
ProtoIdentifier,
)
from src.python.py_proto.proto_int import ProtoInt, ProtoIntSign
from src.python.py_proto.proto_node import ParsedProtoNode, ProtoContainerNode, ProtoNode, ProtoNodeDiff
from src.python.py_proto.proto_node import (
ParsedProtoNode,
ProtoContainerNode,
ProtoNode,
ProtoNodeDiff,
)
from src.python.py_proto.proto_option import ParsedProtoOptionNode, ProtoOption
from src.python.py_proto.proto_reserved import ProtoReserved

Expand Down
6 changes: 5 additions & 1 deletion src/python/py_proto/proto_extend.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@
ProtoEnumOrMessageIdentifier,
)
from src.python.py_proto.proto_message_field import ProtoMessageField
from src.python.py_proto.proto_node import ParsedProtoNode, ProtoContainerNode, ProtoNode
from src.python.py_proto.proto_node import (
ParsedProtoNode,
ProtoContainerNode,
ProtoNode,
)


class ProtoExtend(ProtoContainerNode):
Expand Down
7 changes: 6 additions & 1 deletion src/python/py_proto/proto_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@
from src.python.py_proto.proto_extend import ProtoExtend
from src.python.py_proto.proto_import import ProtoImport
from src.python.py_proto.proto_message import ProtoMessage
from src.python.py_proto.proto_node import ParsedProtoNode, ProtoContainerNode, ProtoNode, ProtoNodeDiff
from src.python.py_proto.proto_node import (
ParsedProtoNode,
ProtoContainerNode,
ProtoNode,
ProtoNodeDiff,
)
from src.python.py_proto.proto_option import ProtoOption
from src.python.py_proto.proto_package import ProtoPackage
from src.python.py_proto.proto_service import ProtoService
Expand Down
10 changes: 8 additions & 2 deletions src/python/py_proto/proto_map.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
from enum import Enum
from typing import Optional, Sequence

from src.python.py_proto.proto_identifier import ProtoEnumOrMessageIdentifier, ProtoIdentifier
from src.python.py_proto.proto_identifier import (
ProtoEnumOrMessageIdentifier,
ProtoIdentifier,
)
from src.python.py_proto.proto_int import ProtoInt
from src.python.py_proto.proto_message_field import ProtoMessageFieldOption, ProtoMessageFieldTypesEnum
from src.python.py_proto.proto_message_field import (
ProtoMessageFieldOption,
ProtoMessageFieldTypesEnum,
)
from src.python.py_proto.proto_node import ParsedProtoNode, ProtoNode, ProtoNodeDiff


Expand Down
12 changes: 10 additions & 2 deletions src/python/py_proto/proto_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,18 @@
from src.python.py_proto.proto_enum import ProtoEnum
from src.python.py_proto.proto_extend import ProtoExtend
from src.python.py_proto.proto_extensions import ProtoExtensions
from src.python.py_proto.proto_identifier import ParsedProtoIdentifierNode, ProtoIdentifier
from src.python.py_proto.proto_identifier import (
ParsedProtoIdentifierNode,
ProtoIdentifier,
)
from src.python.py_proto.proto_map import ProtoMap
from src.python.py_proto.proto_message_field import ProtoMessageField
from src.python.py_proto.proto_node import ParsedProtoNode, ProtoContainerNode, ProtoNode, ProtoNodeDiff
from src.python.py_proto.proto_node import (
ParsedProtoNode,
ProtoContainerNode,
ProtoNode,
ProtoNodeDiff,
)
from src.python.py_proto.proto_oneof import ProtoOneOf
from src.python.py_proto.proto_option import ProtoOption
from src.python.py_proto.proto_reserved import ProtoReserved
Expand Down
10 changes: 8 additions & 2 deletions src/python/py_proto/proto_message_field.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
from enum import Enum
from typing import Optional, Sequence

from src.python.py_proto.proto_enum import ParsedProtoEnumValueOptionNode, ProtoEnumValueOption
from src.python.py_proto.proto_identifier import ProtoEnumOrMessageIdentifier, ProtoIdentifier
from src.python.py_proto.proto_enum import (
ParsedProtoEnumValueOptionNode,
ProtoEnumValueOption,
)
from src.python.py_proto.proto_identifier import (
ProtoEnumOrMessageIdentifier,
ProtoIdentifier,
)
from src.python.py_proto.proto_int import ProtoInt
from src.python.py_proto.proto_node import ParsedProtoNode, ProtoNode, ProtoNodeDiff

Expand Down
17 changes: 14 additions & 3 deletions src/python/py_proto/proto_oneof.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,21 @@
ProtoMultiLineComment,
ProtoSingleLineComment,
)
from src.python.py_proto.proto_identifier import ParsedProtoIdentifierNode, ProtoIdentifier
from src.python.py_proto.proto_identifier import (
ParsedProtoIdentifierNode,
ProtoIdentifier,
)
from src.python.py_proto.proto_map import ProtoMap
from src.python.py_proto.proto_message_field import ParsedProtoMessageFieldNode, ProtoMessageField
from src.python.py_proto.proto_node import ParsedProtoNode, ProtoContainerNode, ProtoNode, ProtoNodeDiff
from src.python.py_proto.proto_message_field import (
ParsedProtoMessageFieldNode,
ProtoMessageField,
)
from src.python.py_proto.proto_node import (
ParsedProtoNode,
ProtoContainerNode,
ProtoNode,
ProtoNodeDiff,
)
from src.python.py_proto.proto_option import ParsedProtoOptionNode, ProtoOption

ProtoOneOfNodeTypes = (
Expand Down
6 changes: 5 additions & 1 deletion src/python/py_proto/proto_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@
ProtoEnumOrMessageIdentifier,
ProtoIdentifier,
)
from src.python.py_proto.proto_node import ParsedProtoNode, ProtoContainerNode, ProtoNode
from src.python.py_proto.proto_node import (
ParsedProtoNode,
ProtoContainerNode,
ProtoNode,
)
from src.python.py_proto.proto_option import ProtoOption


Expand Down
5 changes: 4 additions & 1 deletion src/python/py_proto/test/proto_comment_test.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import unittest

from src.python.py_proto.proto_comment import ProtoMultiLineComment, ProtoSingleLineComment
from src.python.py_proto.proto_comment import (
ProtoMultiLineComment,
ProtoSingleLineComment,
)


class ProtoSingleLineCommentTest(unittest.TestCase):
Expand Down
5 changes: 4 additions & 1 deletion src/python/py_proto/test/proto_enum_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
from textwrap import dedent

from src.python.py_proto.proto_bool import ProtoBool
from src.python.py_proto.proto_comment import ProtoMultiLineComment, ProtoSingleLineComment
from src.python.py_proto.proto_comment import (
ProtoMultiLineComment,
ProtoSingleLineComment,
)
from src.python.py_proto.proto_constant import ProtoConstant
from src.python.py_proto.proto_enum import (
ProtoEnum,
Expand Down
10 changes: 8 additions & 2 deletions src/python/py_proto/test/proto_extend_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@
from textwrap import dedent

from src.python.py_proto.proto_extend import ProtoExtend
from src.python.py_proto.proto_identifier import ProtoEnumOrMessageIdentifier, ProtoIdentifier
from src.python.py_proto.proto_identifier import (
ProtoEnumOrMessageIdentifier,
ProtoIdentifier,
)
from src.python.py_proto.proto_int import ProtoInt, ProtoIntSign
from src.python.py_proto.proto_message_field import ProtoMessageField, ProtoMessageFieldTypesEnum
from src.python.py_proto.proto_message_field import (
ProtoMessageField,
ProtoMessageFieldTypesEnum,
)


class ExtendTest(unittest.TestCase):
Expand Down
6 changes: 5 additions & 1 deletion src/python/py_proto/test/proto_map_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@
ProtoIdentifier,
)
from src.python.py_proto.proto_int import ProtoInt, ProtoIntSign
from src.python.py_proto.proto_map import ProtoMap, ProtoMapKeyTypesEnum, ProtoMapValueTypesEnum
from src.python.py_proto.proto_map import (
ProtoMap,
ProtoMapKeyTypesEnum,
ProtoMapValueTypesEnum,
)
from src.python.py_proto.proto_message_field import ProtoMessageFieldOption
from src.python.py_proto.proto_string_literal import ProtoStringLiteral

Expand Down
17 changes: 14 additions & 3 deletions src/python/py_proto/test/proto_message_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
from textwrap import dedent

from src.python.py_proto.proto_bool import ProtoBool
from src.python.py_proto.proto_comment import ProtoMultiLineComment, ProtoSingleLineComment
from src.python.py_proto.proto_comment import (
ProtoMultiLineComment,
ProtoSingleLineComment,
)
from src.python.py_proto.proto_constant import ProtoConstant
from src.python.py_proto.proto_enum import ProtoEnum, ProtoEnumValue
from src.python.py_proto.proto_extend import ProtoExtend
Expand All @@ -13,8 +16,16 @@
ProtoIdentifier,
)
from src.python.py_proto.proto_int import ProtoInt, ProtoIntSign
from src.python.py_proto.proto_map import ProtoMap, ProtoMapKeyTypesEnum, ProtoMapValueTypesEnum
from src.python.py_proto.proto_message import ProtoMessage, ProtoMessageAdded, ProtoMessageRemoved
from src.python.py_proto.proto_map import (
ProtoMap,
ProtoMapKeyTypesEnum,
ProtoMapValueTypesEnum,
)
from src.python.py_proto.proto_message import (
ProtoMessage,
ProtoMessageAdded,
ProtoMessageRemoved,
)
from src.python.py_proto.proto_message_field import (
ProtoMessageField,
ProtoMessageFieldOption,
Expand Down
6 changes: 5 additions & 1 deletion src/python/py_proto/test/proto_oneof_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@
ProtoMessageFieldRemoved,
ProtoMessageFieldTypesEnum,
)
from src.python.py_proto.proto_oneof import ProtoOneOf, ProtoOneOfAdded, ProtoOneOfRemoved
from src.python.py_proto.proto_oneof import (
ProtoOneOf,
ProtoOneOfAdded,
ProtoOneOfRemoved,
)
from src.python.py_proto.proto_option import ProtoOption
from src.python.py_proto.proto_string_literal import ProtoStringLiteral

Expand Down
5 changes: 4 additions & 1 deletion src/python/py_proto/test/proto_service_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
from textwrap import dedent

from src.python.py_proto.proto_bool import ProtoBool
from src.python.py_proto.proto_comment import ProtoMultiLineComment, ProtoSingleLineComment
from src.python.py_proto.proto_comment import (
ProtoMultiLineComment,
ProtoSingleLineComment,
)
from src.python.py_proto.proto_constant import ProtoConstant
from src.python.py_proto.proto_identifier import (
ProtoEnumOrMessageIdentifier,
Expand Down
6 changes: 5 additions & 1 deletion src/python/py_proto/test/util/parser_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@
)
from src.python.py_proto.proto_import import ProtoImport
from src.python.py_proto.proto_int import ProtoInt, ProtoIntSign
from src.python.py_proto.proto_map import ProtoMap, ProtoMapKeyTypesEnum, ProtoMapValueTypesEnum
from src.python.py_proto.proto_map import (
ProtoMap,
ProtoMapKeyTypesEnum,
ProtoMapValueTypesEnum,
)
from src.python.py_proto.proto_message import ProtoMessage, ProtoOneOf
from src.python.py_proto.proto_message_field import (
ProtoMessageField,
Expand Down

0 comments on commit d5f331b

Please sign in to comment.