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

7 Commits

Author SHA1 Message Date
matejcik
43677c6afd style(core): add check for utils.INTERNAL_MODEL in (tuple)
The static replacer doesn't understand tuples (it's just a dumb sed,
we'd need to teach it the python ast which is a somewhat bigger project
that would also make the build slower)
so instead we spell out every "utils.INTERNAL_MODEL == xyz" equality
check separately.

If you don't, you don't get static replacement and you're checking at
run-time in every firmware for every device.

This pylint will catch the problem.
2024-08-29 10:56:21 +02:00
matejcik
3d4292e069 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
2023-11-30 09:27:57 +01:00
matejcik
e5670856a2 MONOREPO CREATE FROM trezor-core 2019-04-15 19:14:40 +02:00
Jan Pochyla
23b5e839fb pylint: remove libs/ 2017-08-15 18:14:14 +02:00
Jan Pochyla
552444c856 remove src/lib 2017-08-15 18:14:14 +02:00
Jan Pochyla
1f90e781d5 wire: simplify, use async codecs 2017-08-15 18:14:14 +02:00
Jan Pochyla
f746fd4e38 pylintrc 2017-06-14 17:38:54 +02:00