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

build: update cstyle/cstyle_check targets

This commit is contained in:
Pavol Rusnak 2019-03-25 19:47:51 +01:00
parent 4dcd3b5812
commit c46be39d58
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -81,13 +81,16 @@ style_check: ## run code style check on application sources and tests
isort --check-only $(shell find src -name *.py ! -path 'src/trezor/messages/*')
black --check $(shell find src -name *.py ! -path 'src/trezor/messages/*')
style:
style: ## apply code style on application sources and tests
isort $(shell find src -name *.py ! -path 'src/trezor/messages/*')
black $(shell find src -name *.py ! -path 'src/trezor/messages/*')
cstyle: ## run code style check on low-level C code
cstyle_check: ## run code style check on low-level C code
./tools/clang-format-check $(shell find embed -type f -name *.[ch])
cstyle: ## apply code style on low-level C code
clang-format -i $(shell find embed -type f -name *.[ch])
## code generation:
templates: ## render Mako templates (for lists of coins, tokens, etc.)