How do I specify exclude_lines for PyCharm coverage?

I am using Ubuntu 22.04, PyCharm 2022.2.4 and Python 3.11.0rc2.
I would like to automatically exclude coverage due to abstractmethods that are not executed.

I have heard that PyCharm uses to display the coverage, so I have found the documentation for ( exclusion), I specified exclude_lines in .coveragerc and pyproject.toml.
When I invoked from the console and checked the report and html, it was successfully excluded, but it does not seem to be applied to the display by PyCharm.

Is there a solution to this problem?


Please sign in to leave a comment.