pyca / pynacl

Python binding to the Networking and Cryptography (NaCl) library
https://pynacl.readthedocs.io/
Apache License 2.0
1.06k stars 233 forks source link

Tweak mypy settings #698

Closed Dreamsorcerer closed 2 years ago

Dreamsorcerer commented 2 years ago

Correct one option: https://mypy.readthedocs.io/en/stable/config_file.html#confval-implicit_reexport

Add another warning option that might be useful in rare circumstances.

DMRobertson commented 2 years ago

I think this introduces the following mypy warnings:

pyproject.toml: [module = "nacl.bindings.crypto_aead"]: Per-module sections should only specify per-module flags (warn_incomplete_stub)

I think it just needs to be set under the first [tool.mypy] section.

Dreamsorcerer commented 2 years ago

Ah, maybe I misunderstood the config format. Not sure why it still exits successfully with errors though.