1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 07:28:10 +00:00

make: move flake8 options to config file

This commit is contained in:
Jan Pochyla 2017-06-14 12:58:20 +02:00
parent a01504ace9
commit 22960b567b
2 changed files with 14 additions and 2 deletions

12
.flake8 Normal file
View File

@ -0,0 +1,12 @@
[flake8]
ignore =
# E221: multiple spaces before operator
E221,
# E241: multiple spaces after comma
E241,
# F401: module imported but unused
F401,
# E402: module level import not at top of file
E402,
# E501: line too long
E501

View File

@ -48,10 +48,10 @@ testpy: ## run selected unit tests from python-trezor
cd tests ; ./run_tests_python_trezor.sh
pylint: ## run pylint on application sources
pylint --rcfile=pylint.rc -E $(shell find src -name *.py)
pylint -E $(shell find src -name *.py)
style: ## run code style check on application sources
flake8 --ignore=E221,E241,E402,E501,F401 $(shell find src -name *.py)
flake8 $(shell find src -name *.py)
## build commands: