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

ci: enable editorconfig checks, fix whitespace issues

This commit is contained in:
Pavol Rusnak 2020-11-11 14:43:09 +01:00
parent 473fb1a3a6
commit 50fdd183c2
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
59 changed files with 891 additions and 883 deletions

View File

@ -9,7 +9,7 @@ PY_FILES = $(shell find . -type f -name '*.py' | grep -f ./tools/style.py.incl
C_FILES = $(shell find . -type f -name '*.[ch]' | grep -f ./tools/style.c.include | grep -v -f ./tools/style.c.exclude ) C_FILES = $(shell find . -type f -name '*.[ch]' | grep -f ./tools/style.c.include | grep -v -f ./tools/style.c.exclude )
style_check: pystyle_check cstyle_check changelog_check yaml_check ## run all style checks (C+Py) style_check: pystyle_check cstyle_check changelog_check yaml_check editor_check ## run all style checks (C+Py)
style: pystyle cstyle changelog ## apply all code styles (C+Py) style: pystyle cstyle changelog ## apply all code styles (C+Py)
@ -45,6 +45,9 @@ changelog_check: ## check changelog format
yaml_check: ## check yaml formatting yaml_check: ## check yaml formatting
yamllint . yamllint .
editor_check: ## check editorconfig formatting
editorconfig-checker -exclude '.*\.(so|dat|toif|der)'
changelog: ## fill out issue links in changelog changelog: ## fill out issue links in changelog
./tools/linkify-changelogs.py ./tools/linkify-changelogs.py

View File

@ -4,5 +4,5 @@ This is pretty easy to print. First open ```base.scad``` with OpenSCAD and
export your ```.stl``` file with it. export your ```.stl``` file with it.
Open it with your slider, we are using Open it with your slider, we are using
Original Priska i3 MK3 to print our models. 0.15mm quality setting with standard Original Prusa i3 MK3 to print our models. 0.15mm quality setting with standard
PLA works fine for us. PLA works fine for us.

View File

@ -17,6 +17,11 @@ gen prebuild:
script: script:
- nix-shell --run "poetry run make gen_check" - nix-shell --run "poetry run make gen_check"
editor prebuild:
stage: prebuild
script:
- nix-shell --run "make editor_check"
yaml prebuild: yaml prebuild:
stage: prebuild stage: prebuild
script: script:

View File

@ -37,6 +37,7 @@ stdenv.mkDerivation ({
bash bash
check check
clang-tools clang-tools
editorconfig-checker
gcc gcc
gcc-arm-embedded gcc-arm-embedded
git git

View File

@ -92,7 +92,6 @@ message TxOutputType {
optional MultisigRedeemScriptType multisig = 5; // multisig output definition optional MultisigRedeemScriptType multisig = 5; // multisig output definition
optional bytes op_return_data = 6; // defines op_return data optional bytes op_return_data = 6; // defines op_return data
optional uint32 decred_script_version = 7; // only for Decred optional uint32 decred_script_version = 7; // only for Decred
``` ```
All outputs must have an `amount` and a `script_type`. All outputs must have an `amount` and a `script_type`.