mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-22 06:18:07 +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:
parent
f0d6539d3d
commit
3d4292e069
37
.pylintrc
Normal file
37
.pylintrc
Normal 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,
|
35
setup.cfg
35
setup.cfg
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user