1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-06-23 08:28:46 +00:00

chore(core): remove unused all_modules.py

[no changelog]
This commit is contained in:
Roman Zeyde 2025-04-08 15:36:29 +03:00 committed by Roman Zeyde
parent 1ddba2526b
commit 893bd1e69b
7 changed files with 3 additions and 8 deletions

1
.gitattributes vendored
View File

@ -4,7 +4,6 @@ rust/trezor-client/src/messages/generated.rs linguist-generated
core/embed/rust/src/translations/generated/*.rs linguist-generated core/embed/rust/src/translations/generated/*.rs linguist-generated
core/embed/rust/src/ui/layout_*/fonts/font_*.rs linguist-generated core/embed/rust/src/ui/layout_*/fonts/font_*.rs linguist-generated
core/src/all_modules.py linguist-generated
core/src/trezor/messages.py linguist-generated core/src/trezor/messages.py linguist-generated
core/src/trezor/enums/*.py linguist-generated core/src/trezor/enums/*.py linguist-generated
core/src/apps/common/coininfo.py linguist-generated core/src/apps/common/coininfo.py linguist-generated

View File

@ -1,6 +1,5 @@
[MASTER] [MASTER]
ignore-paths= ignore-paths=
core/src/all_modules.py,
core/src/apps/ethereum/tokens.py, core/src/apps/ethereum/tokens.py,
core/src/trezor/res/resources.py, core/src/trezor/res/resources.py,
core/src/trezor/messages.py, core/src/trezor/messages.py,

View File

@ -4,8 +4,7 @@
], ],
"exclude": [ "exclude": [
"src/apps/monero", "src/apps/monero",
"src/typing.py", "src/typing.py"
"src/all_modules.py"
], ],
"stubPath": "mocks/generated", "stubPath": "mocks/generated",
"typeCheckingMode": "basic", "typeCheckingMode": "basic",

View File

@ -91,7 +91,7 @@ def generate(env):
) )
env["BUILDERS"]["FrozenCFile"] = SCons.Builder.Builder( env["BUILDERS"]["FrozenCFile"] = SCons.Builder.Builder(
action="$MPY_TOOL -f -q $qstr_header $SOURCES --skip-freeze all_modules.py > $TARGET", action="$MPY_TOOL -f -q $qstr_header $SOURCES > $TARGET",
) )

View File

@ -27,7 +27,6 @@ else
fi fi
EXCLUDES="\ EXCLUDES="\
src/all_modules.py,\
src/typing.py,\ src/typing.py,\
src/apps/ethereum/tokens.py,\ src/apps/ethereum/tokens.py,\
src/apps/webauthn/knownapps.py,\ src/apps/webauthn/knownapps.py,\

View File

@ -257,7 +257,6 @@ if __name__ == "__main__":
"knownapps.py", "knownapps.py",
"networks.py", "networks.py",
"tokens.py", "tokens.py",
"all_modules.py",
"workflow_handlers.py", "workflow_handlers.py",
"messages.py", "messages.py",
"errors.py", "errors.py",

View File

@ -129,7 +129,7 @@ if msg_type == MessageType.HelloWorldRequest:
The above will make sure that the `msg` (of type `HelloWorldRequest`) will be supplied into the `hello_world` function we created. The above will make sure that the `msg` (of type `HelloWorldRequest`) will be supplied into the `hello_world` function we created.
Lastly, running `make gen` in the root directory makes sure the new `misc/hello_world.py` module will be discovered. `core/src/all_modules.py` should be modified as a result. Lastly, running `make gen` in the root directory makes sure the new `misc/hello_world.py` module will be discovered.
These are all the necessary code changes in `core`. For this code to work, we will still need to build it, but that will be done in Part 4. Next, we will focus on the client implementation. These are all the necessary code changes in `core`. For this code to work, we will still need to build it, but that will be done in Part 4. Next, we will focus on the client implementation.