1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-21 15:08:12 +00:00

chore: move pylint config from setup.cfg to .pylintrc

multiple bugreports complain about poor support for setup.cfg
for instance, the load-plugins rule is ignored in setup.cfg
This commit is contained in:
matejcik 2023-11-28 14:58:30 +01:00 committed by matejcik
parent f0d6539d3d
commit 3d4292e069
2 changed files with 37 additions and 35 deletions

37
.pylintrc Normal file
View File

@ -0,0 +1,37 @@
[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,
fail-under=10.0
jobs=0
load-plugins=trezor_pylint_plugin
[MESSAGE CONTROL]
disable=all
enable=
bad-plugin-value,
assignment-from-none,
chained-comparison,
consider-merging-isinstance,
consider-using-dict-comprehension,
consider-using-dict-items,
consider-using-f-string,
consider-using-in,
dangerous-default-value,
inconsistent-return-statements,
lost-exception,
pointless-string-statement,
simplifiable-if-statement,
super-init-not-called,
superfluous-parens,
unused-variable,
use-list-literal,
useless-else-on-loop,
useless-object-inheritance,
async-awaitable-return,

View File

@ -42,38 +42,3 @@ warn_unused_ignores = True
show_error_codes = True
# type union operator support, should be removed after 3.10 is the default
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,
fail-under=10.0
jobs=0
[pylint."MESSAGE CONTROL"]
disable=all
enable=
assignment-from-none,
chained-comparison,
consider-merging-isinstance,
consider-using-dict-comprehension,
consider-using-dict-items,
consider-using-f-string,
consider-using-in,
dangerous-default-value,
inconsistent-return-statements,
lost-exception,
pointless-string-statement,
simplifiable-if-statement,
super-init-not-called,
superfluous-parens,
unused-variable,
use-list-literal,
useless-else-on-loop,
useless-object-inheritance,