1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-21 23:18:13 +00:00

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

This commit is contained in:
gabrielkerekes 2021-04-21 14:20:22 +02:00 committed by matejcik
parent 6f59892824
commit bf3e64ff20
644 changed files with 647 additions and 4 deletions

View File

@ -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):

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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:

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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