Skip to content

Commit

Permalink
Move warn_incomplete_stub to global options (#705)
Browse files Browse the repository at this point in the history
A follow-up to #698.

This suppresses the following warning from mypy, by making the flag
apply globally rather than to a specific module.

```
pyproject.toml: [module = "nacl.bindings.crypto_aead"]: Per-module sections should only specify per-module flags (warn_incomplete_stub)
pyproject.toml: [module = "nacl.encoding"]: Per-module sections should only specify per-module flags (warn_incomplete_stub)
pyproject.toml: [module = "nacl.exceptions"]: Per-module sections should only specify per-module flags (warn_incomplete_stub)
pyproject.toml: [module = "nacl.utils"]: Per-module sections should only specify per-module flags (warn_incomplete_stub)
```
  • Loading branch information
DMRobertson committed Nov 20, 2021
1 parent bf6787d commit f241e5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ show_error_codes = true
check_untyped_defs = true
no_implicit_reexport = true
warn_redundant_casts = true
warn_incomplete_stub = true

files = ["src/nacl"]

Expand Down Expand Up @@ -48,7 +49,6 @@ disallow_untyped_decorators = true

no_implicit_optional = true

warn_incomplete_stub = true
warn_unused_ignores = true
warn_no_return = true
# warn_return_any: true outside of `bindings`
Expand Down

0 comments on commit f241e5c

Please sign in to comment.