mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-13 19:18:56 +00:00
make: move flake8 options to config file
This commit is contained in:
parent
a01504ace9
commit
22960b567b
12
.flake8
Normal file
12
.flake8
Normal 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
|
4
Makefile
4
Makefile
@ -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:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user