Browse Source

chore: fix pylint ignore list

pull/2098/head
matejcik 6 months ago committed by matejcik
parent
commit
a532bf0737
  1. 2
      Makefile
  2. 17
      setup.cfg
  3. 6
      tools/style.py.exclude
  4. 14
      tools/style.py.include

2
Makefile

@ -5,7 +5,7 @@ help: ## show this help
## style commands:
PY_FILES = $(shell find . -type f -name '*.py' | grep -f ./tools/style.py.include | grep -v -f ./tools/style.py.exclude )
PY_FILES = $(shell find . -type f -name '*.py' | sed 'sO^\./OO' | grep -f ./tools/style.py.include | grep -v -f ./tools/style.py.exclude )
C_FILES = $(shell find . -type f -name '*.[ch]' | grep -f ./tools/style.c.include | grep -v -f ./tools/style.c.exclude )

17
setup.cfg

@ -56,20 +56,19 @@ python_version = 3.10
[pylint.MASTER]
ignore-paths=
./core/src/all_modules.py,
./core/src/apps/ethereum/tokens.py,
./core/src/trezor/res/resources.py,
./core/src/trezor/messages.py,
./core/src/trezor/enums,
./crypto,
./legacy,
./storage,
core/src/all_modules.py,
core/src/apps/ethereum/tokens.py,
core/src/trezor/res/resources.py,
core/src/trezor/messages.py,
core/src/trezor/enums,
crypto,
legacy,
storage,
fail-under=10.0
jobs=0
[pylint."MESSAGE CONTROL"]
disable=all
enable=
assignment-from-none,
chained-comparison,

6
tools/style.py.exclude

@ -1,3 +1,3 @@
^\./legacy/firmware/protob/messages_pb2\.py
^\./legacy/firmware/protob/messages_nem_pb2\.py
^\./legacy/vendor
^legacy/firmware/protob/messages_pb2\.py
^legacy/firmware/protob/messages_nem_pb2\.py
^legacy/vendor

14
tools/style.py.include

@ -1,7 +1,7 @@
^\./common/
^\./core/src/
^\./crypto/
^\./legacy/
^\./storage/
^\./tests/
^\./ci/
^common/
^core/src/
^crypto/
^legacy/
^storage/
^tests/
^ci/

Loading…
Cancel
Save