1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-18 05:28:40 +00:00
Commit Graph

38 Commits

Author SHA1 Message Date
matejcik
a12bc416ed chore: upgrade to isort 5 2023-08-16 13:29:51 +02:00
grdddj
68e93a7b60 feat(pylint): disable reimported check to allow for local_cache_global 2022-11-10 14:08:28 +01:00
matejcik
a532bf0737 chore: fix pylint ignore list 2022-02-15 13:28:03 +01:00
matejcik
dec89ea59e refactor(core): convert if/elif chains to if-chains
This way AST parsers won't get stack exceeded (because an elif counts as
an else { if {}} to an AST parser apparently?) and so automated tools
will like tokens.py and friends.
2022-01-07 21:41:17 +01:00
matejcik
f88f568f1e feat(all): enable pylint globally
[no changelog]

with a whitelisted set of checks that can be expanded in the future if
we need something
2021-10-27 13:13:15 +02:00
Martin Milata
ac711fb8ee style(core): use more recent type annotation syntax
https://www.python.org/dev/peps/pep-0585/ - Type Hinting Generics In Standard Collections
https://www.python.org/dev/peps/pep-0604/ - Allow writing union types as X | Y
2021-04-01 11:12:30 +02:00
Martin Milata
8b3ac659a0 style(core): mypy: disable implicit Optional for function arguments
https://www.python.org/dev/peps/pep-0484/#union-types
2021-04-01 11:12:30 +02:00
matejcik
ba326865f1 chore: rename deprecated pytest option 2021-02-05 10:44:09 +01:00
matejcik
6dda240f5c test(python): add flake8-requirements 2020-09-29 11:30:40 +02:00
Tomas Susanka
1ac0f60550 core: update isort config to place relative imports last 2020-05-18 14:31:51 +02:00
matejcik
e5a909478e tests: silence pytest 6.0 warning 2020-03-26 11:30:06 +01:00
matejcik
5b7d11e4ee tests: remove explicit timeouts from test suite 2020-03-09 10:31:17 +01:00
Tomas Susanka
1988fb0409 core: add short summary to pytest to see what failed right away 2020-01-28 09:32:03 +00:00
matejcik
88ee780125 tests: set a 60-second timeout for every test case 2020-01-27 19:41:50 +01:00
matejcik
d1d9ce013e style: explicitly list shamir-mnemonic in the proper group 2019-12-09 16:31:46 +01:00
Tomas Susanka
086ec00862 mypy: add show_error_codes to setup.cfg 2019-10-02 11:12:34 +02:00
matejcik
3255e8a16a tests: run default set of tests from root 2019-08-12 12:57:25 +02:00
matejcik
2f7b2da2e3 tests: enable order randomization
tests: fixup
2019-08-12 12:57:25 +02:00
matejcik
c683251d7b tests: add new test location to style checks 2019-08-12 12:57:25 +02:00
Jan Pochyla
758a1a2528 core/typing: add annotations 2019-07-09 12:51:48 +02:00
Jan Pochyla
f5299456a9 core/typing: add mypy 2019-07-09 12:51:48 +02:00
matejcik
a0d7a6a667 python: more consistent handling of markers in device_tests
also better behavior when no Trezor device is present
2019-05-27 16:38:35 +02:00
Pavol Rusnak
0765842e7f
root: move pytest markers to setup.cfg 2019-05-25 13:06:28 +02:00
Tomas Susanka
562206d220
tests: remove xfail 2019-05-25 11:59:35 +02:00
matejcik
482b4569f5 build: fix and auto-generate mock files
Squashed commit of the following:

commit 84d3486f59bda063f06521c8b695ea4b07781ec6
Author: matejcik <ja@matejcik.cz>
Date:   Fri May 17 14:17:15 2019 +0200

    mocks: complete

commit d538133a6d0fb4af06c7c81f80b8675869fb5908
Author: matejcik <ja@matejcik.cz>
Date:   Fri May 17 14:12:26 2019 +0200

    mocks part 3

commit 9f0b868d41dafaf487df6fc844db7f3368eabe1b
Author: matejcik <ja@matejcik.cz>
Date:   Fri May 17 14:09:20 2019 +0200

    mocks: update generated mocks

commit 5d80c18a7824ed16fc11cde4cdb8ebca7ed33400
Author: matejcik <ja@matejcik.cz>
Date:   Thu May 16 15:49:40 2019 +0200

    mocks wip 2

commit 4b576eb796136a61eb88cb0d281fa4e21eadada8
Author: matejcik <ja@matejcik.cz>
Date:   Tue May 7 17:02:51 2019 +0200

    WIP mocks part 1

commit cf3f0d4471ab74b478d2970b0bb178feae7c86a3
Author: matejcik <ja@matejcik.cz>
Date:   Fri May 3 17:07:53 2019 +0200

    core: add package to secp256k1_zkp for mocking

commit 8a12f26c8c0d99363c8df96012426abbbb3ff6cb
Author: matejcik <ja@matejcik.cz>
Date:   Fri May 3 17:04:05 2019 +0200

    core: blackify extmod docstring quotes

commit b6f239676dde8b60b001fcae4e5de80a71dbacf2
Author: matejcik <ja@matejcik.cz>
Date:   Fri May 3 16:52:27 2019 +0200

    core: make build_mocks directory agnostic

mocks: detect bad packages

mocks: revert noqa in favor of setup.cfg

mocks: fix broken comment formatting
2019-05-17 15:45:47 +02:00
matejcik
cf5df6b39b style: improve Makefile, stricter style rules 2019-05-07 16:31:04 +02:00
Pavol Rusnak
0ae10a1924
legacy+storage: fix style checks 2019-05-04 22:42:40 +02:00
Tomas Susanka
8c9f74d16c ci: do not pass anything to pytest globally
to allow pytest in crypto/
2019-04-23 17:52:10 +02:00
Pavol Rusnak
8b06598474
core+legacy: rework code styling checks 2019-04-18 17:40:55 +02:00
matejcik
e5670856a2 MONOREPO CREATE FROM trezor-core 2019-04-15 19:14:40 +02:00
Tomas Susanka
204f6b7a5a tests: tezos is not xfailed anymore 2018-09-13 15:14:06 +02:00
Adrian Matejov
d4987849ce tezos: run_xfail set
Signed-off-by: Adrian Matejov <adrian.matejov@simplestaking.com>
2018-09-13 15:06:03 +02:00
Tomas Susanka
02c5f14728 tests: ripple removed from run_xfail
Ripple is not marked as xfail anymore, because it is merged in core and
xfail mark was removed from python-trezor in ea77deeaed
2018-09-10 14:29:26 +02:00
Tomas Susanka
b5c2ae49dd ripple: get address 2018-07-30 16:37:48 +02:00
Tomas Susanka
c5681ed2d9 stellar: drop xfail flag 2018-07-12 15:22:37 +02:00
Tomas Susanka
4f7822acb1 tests: stellar in pytest.ini 2018-07-11 17:20:25 +02:00
Jan Pochyla
d83c0fa932 flake8: make rules compatible with black 2018-07-10 11:17:12 +02:00
Jan Pochyla
93d1b0751b make: combine formatting tools, add black and isort 2018-07-10 11:17:12 +02:00