Configuration: use strict, but disable some of rules #1436
Answered
by
erictraut
Yohei Tamura (tamuhey)
asked this question in
Q&A
|
I want pyright to check my code with |
Answered by
erictraut
Jan 29, 2021
Replies: 1 comment
|
You can specify the severity of individual diagnostic checks within the pyrightconfig.json. In strict mode, overrides will generally never make the rule less strict than the default used in strict mode. The one exception is For more details, refer to this documentation. Also, refer to this part of the pyright source code. |
0 replies
Answer selected by
tamuhey
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can specify the severity of individual diagnostic checks within the pyrightconfig.json. In strict mode, overrides will generally never make the rule less strict than the default used in strict mode. The one exception is
reportMissingModuleSource. For that diagnostic rule, you can override the strict-mode setting.For more details, refer to this documentation.
Also, refer to this part of the pyright source code.