Skip to content

Environment specific report config overrides? #2173

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

You must be logged in to vote

I'm not sure what you mean by "report config". Can you elaborate?

What I tend to do in my test code is to disable specific diagnostic checks that don't apply within that test file. I used # pyright comments at the top, like this, with comments indicating why they need to be disabled for that test.

# This is needed because the unit test accesses private members.
# pyright: reportPrivateUsage=false

Does that meet your needs?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@FasterSpeeding
Comment options

Answer selected by FasterSpeeding
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