Exclude from coverage: empty bodies in protocols or abstract methods

This commit is contained in:
Hugo van Kemenade 2024-01-23 23:58:41 +02:00
parent 231d54b9df
commit e3932b7dba

View File

@ -10,6 +10,9 @@ exclude_also =
if DEBUG:
# Don't complain about compatibility code for missing optional dependencies
except ImportError
# Empty bodies in protocols or abstract methods
^\s*def [a-zA-Z0-9_]+\(.*\)(\s*->.*)?:\s*\.\.\.(\s*#.*)?$
^\s*\.\.\.(\s*#.*)?$
[run]
omit =