Skip to content

Commit

Permalink
Add README (#13)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
shaldengeki and pre-commit-ci[bot] authored Feb 27, 2024
1 parent 0cf72ec commit 1ef5a54
Show file tree
Hide file tree
Showing 20 changed files with 122 additions and 27 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# monorepo

[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/shaldengeki/monorepo/main.svg)](https://results.pre-commit.ci/latest/github/shaldengeki/monorepo/main) [![Test](https://github.com/shaldengeki/monorepo/actions/workflows/main.yml/badge.svg)](https://github.com/shaldengeki/monorepo/actions/workflows/main.yml)

I'm taking a stab at monorepoing my projects. More to come!
Empty file added src/__init__.py
Empty file.
Empty file added src/python/__init__.py
Empty file.
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
4 changes: 2 additions & 2 deletions src/python/py_proto/test/util/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ sh_test(
name = "parser_binary_test",
srcs = ["parser_binary_test.sh"],
data = [
"//src/python/py_proto/util:parser_binary",
"//src/python/py_proto/test/resources:all_protos",
"//src/python/py_proto/util:parser_binary",
"@com_google_protobuf//:all_proto",
],
)
Expand All @@ -38,7 +38,7 @@ sh_test(
name = "compatibility_checker_binary_test",
srcs = ["compatibility_checker_binary_test.sh"],
data = [
"//src/python/py_proto/util:compatibility_checker_binary",
"//src/python/py_proto/test/resources:all_protos",
"//src/python/py_proto/util:compatibility_checker_binary",
],
)
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 1ef5a54

Please sign in to comment.