Skip to content

Configuration: use strict, but disable some of rules #1436

Answered by erictraut
tamuhey asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tamuhey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants