Skip to content

Commit

Permalink
Remove nrf52_upload from flake8 and mypy
Browse files Browse the repository at this point in the history
The pynitrokey.nk3.bootloader.nrf52_upload module is imported from
nrfutil and will be removed from this repository in an upcoming release.
Therefore we disable the flake8 and mypy checks for it.
  • Loading branch information
robin-nitrokey committed Mar 27, 2023
1 parent 9e856f8 commit 9d9e078
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ VENV=venv
PYTHON3=python3

BLACK_FLAGS=-t py39 --extend-exclude pynitrokey/nethsm/client
FLAKE8_FLAGS=--extend-exclude pynitrokey/nethsm/client
FLAKE8_FLAGS=--extend-exclude pynitrokey/nethsm/client,pynitrokey/nk3/bootloader/nrf52_upload
ISORT_FLAGS=--py 39 --extend-skip pynitrokey/nethsm/client

# whitelist of directories for flake8
Expand Down
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@ disallow_untyped_defs = true
module = "pynitrokey.nethsm.client.*"
ignore_errors = true

# pynitrokey.nk3.bootloader.nrf52_upload is only temporary in this package
[[tool.mypy.overrides]]
module = "pynitrokey.nk3.bootloader.nrf52_upload.*"
ignore_errors = true

# libraries without annotations
[[tool.mypy.overrides]]
module = [
Expand Down

0 comments on commit 9d9e078

Please sign in to comment.