Closed szszszsz closed 1 year ago
make check
fails within nethsm:
sz@stumpy ~/w/solo-python (otp-pin-based-encryption)> make check
venv/bin/python3 -m flake8 --extend-exclude pynitrokey/nethsm/client pynitrokey/nethsm pynitrokey/cli/nk3 pynitrokey/nk3
venv/bin/python3 -m mypy pynitrokey
Traceback (most recent call last):
File "/usr/lib64/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib64/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/home/sz/work/solo-python/venv/lib64/python3.10/site-packages/mypy/__main__.py", line 37, in <module>
console_entry()
File "/home/sz/work/solo-python/venv/lib64/python3.10/site-packages/mypy/__main__.py", line 15, in console_entry
main()
File "mypy/main.py", line 95, in main
File "mypy/main.py", line 174, in run_build
File "mypy/build.py", line 194, in build
File "mypy/build.py", line 277, in _build
File "mypy/build.py", line 2923, in dispatch
File "mypy/build.py", line 3313, in process_graph
File "mypy/build.py", line 3394, in process_fresh_modules
File "mypy/build.py", line 2120, in fix_cross_refs
File "mypy/fixup.py", line 53, in fixup_module
File "mypy/fixup.py", line 115, in visit_symbol_table
File "mypy/lookup.py", line 49, in lookup_fully_qualified
AssertionError: Cannot find component 'TypedDict' for 'pynitrokey.nethsm.client.apis.tag_to_api.TypedDict'
make: *** [Makefile:52: lint] Error 1
sz@stumpy ~/w/solo-python (otp-pin-based-encryption) [2]>
Fixing conflict first
Ready for review @sosthene-nitrokey @robin-nitrokey
make check fails within nethsm:
You should be able to fix this issue by deleting the .mypy_cache
folder.
You should be able to fix this issue by deleting the
.mypy_cache
folder.
Yes, this helps. I will add required fixes in the next commit.
This PR adds test for the PIN based encryption in the Secrets app:
Built upon #328
Changes
Checklist
make check
ormake fix
for the formatting checkRelated
UI Changes