fix(common): add isort:skip_file to files generated by pb2py

pull/1582/head
gabrielkerekes 3 years ago committed by matejcik
parent 6f59892824
commit bf3e64ff20

@ -433,6 +433,7 @@ class Descriptor:
with open(os.path.join(self.out_dir, name + ".py"), "w") as f:
f.write(AUTO_HEADER)
f.write("# fmt: off\n")
f.write("# isort:skip_file\n")
for line in out:
f.write(line + "\n")
@ -440,7 +441,8 @@ class Descriptor:
filename = os.path.join(self.out_dir, "__init__.py")
with open(filename, "w") as init_py:
init_py.write(AUTO_HEADER)
init_py.write("# fmt: off\n\n")
init_py.write("# fmt: off\n")
init_py.write("# isort:skip_file\n\n")
for message in sorted(self.messages, key=lambda m: m.name):
init_py.write(self.create_message_import(message.name) + "\n")
for enum in sorted(self.enums, key=lambda m: m.name):

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
if __debug__:

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
if __debug__:
try:
from typing_extensions import Literal # noqa: F401

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
if __debug__:

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
if __debug__:

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
if __debug__:

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
if __debug__:

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
if __debug__:
try:
from typing_extensions import Literal # noqa: F401

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
if __debug__:

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
if __debug__:

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
if __debug__:

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
if __debug__:

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
if __debug__:

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
from .BinanceCoin import BinanceCoin

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
if __debug__:

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
if __debug__:
try:
from typing_extensions import Literal # noqa: F401

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
if __debug__:
try:
from typing_extensions import Literal # noqa: F401

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
if __debug__:

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
if __debug__:

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
if __debug__:

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
if __debug__:
try:
from typing_extensions import Literal # noqa: F401

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
from .BinanceInputOutput import BinanceInputOutput

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
if __debug__:

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
if __debug__:

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
if __debug__:

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
if __debug__:
try:
from typing_extensions import Literal # noqa: F401

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
if __debug__:

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
if __debug__:

@ -2,6 +2,7 @@
# fmt: off
from trezor import utils
# isort:skip_file
if __debug__:
try:
from typing_extensions import Literal # noqa: F401

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
if __debug__:

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
from .CardanoBlockchainPointerType import CardanoBlockchainPointerType

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
if __debug__:
try:
from typing_extensions import Literal # noqa: F401

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
from .CardanoTokenType import CardanoTokenType

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
if __debug__:

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
from .CardanoAddressParametersType import CardanoAddressParametersType

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
if __debug__:
try:
from typing_extensions import Literal # noqa: F401

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
from .CardanoAddressParametersType import CardanoAddressParametersType

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
if __debug__:

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
if __debug__:

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
if __debug__:

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
from .CardanoPoolMetadataType import CardanoPoolMetadataType

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
if __debug__:

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
if __debug__:
try:
from typing_extensions import Literal # noqa: F401

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
from .HDNodeType import HDNodeType

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
from .CardanoTxAuxiliaryDataType import CardanoTxAuxiliaryDataType

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
if __debug__:

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
if __debug__:

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
if __debug__:

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
if __debug__:

@ -1,10 +1,9 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
from .CardanoCatalystRegistrationParametersType import (
CardanoCatalystRegistrationParametersType,
)
from .CardanoCatalystRegistrationParametersType import CardanoCatalystRegistrationParametersType
if __debug__:
try:

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
from .CardanoPoolParametersType import CardanoPoolParametersType

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
if __debug__:

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
from .CardanoAddressParametersType import CardanoAddressParametersType

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
if __debug__:

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
if __debug__:

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
if __debug__:

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
if __debug__:

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
if __debug__:

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
if __debug__:

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
if __debug__:

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
if __debug__:

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
if __debug__:

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
if __debug__:

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
if __debug__:

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
from .HDNodeType import HDNodeType

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
if __debug__:

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
if __debug__:

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
if __debug__:

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
if __debug__:
try:
from typing_extensions import Literal # noqa: F401

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
if __debug__:
try:
from typing_extensions import Literal # noqa: F401

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
if __debug__:

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
if __debug__:

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
if __debug__:

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
if __debug__:

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
if __debug__:

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
if __debug__:

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
if __debug__:

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
if __debug__:

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
from .EosAsset import EosAsset

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
if __debug__:

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
from .EosPermissionLevel import EosPermissionLevel

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
from .EosAsset import EosAsset

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
if __debug__:

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
if __debug__:

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
from .EosAuthorization import EosAuthorization

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
if __debug__:

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
if __debug__:

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
from .EosAsset import EosAsset

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
from .EosAsset import EosAsset

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
if __debug__:

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
if __debug__:

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
from .EosAuthorization import EosAuthorization

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
if __debug__:

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
if __debug__:

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
from .EosAuthorizationAccount import EosAuthorizationAccount

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
from .EosPermissionLevel import EosPermissionLevel

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
if __debug__:

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
if __debug__:

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
if __debug__:

@ -1,5 +1,6 @@
# Automatically generated by pb2py
# fmt: off
# isort:skip_file
import protobuf as p
if __debug__:

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save