mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-16 17:42:02 +00:00
build: update cstyle/cstyle_check targets
This commit is contained in:
parent
4dcd3b5812
commit
c46be39d58
7
Makefile
7
Makefile
@ -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/*')
|
isort --check-only $(shell find src -name *.py ! -path 'src/trezor/messages/*')
|
||||||
black --check $(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/*')
|
isort $(shell find src -name *.py ! -path 'src/trezor/messages/*')
|
||||||
black $(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])
|
./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:
|
## code generation:
|
||||||
|
|
||||||
templates: ## render Mako templates (for lists of coins, tokens, etc.)
|
templates: ## render Mako templates (for lists of coins, tokens, etc.)
|
||||||
|
Loading…
Reference in New Issue
Block a user