mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-14 05:36:48 +03:00
Exclude from coverage: empty bodies in protocols or abstract methods
This commit is contained in:
parent
231d54b9df
commit
e3932b7dba
|
@ -10,6 +10,9 @@ exclude_also =
|
||||||
if DEBUG:
|
if DEBUG:
|
||||||
# Don't complain about compatibility code for missing optional dependencies
|
# Don't complain about compatibility code for missing optional dependencies
|
||||||
except ImportError
|
except ImportError
|
||||||
|
# Empty bodies in protocols or abstract methods
|
||||||
|
^\s*def [a-zA-Z0-9_]+\(.*\)(\s*->.*)?:\s*\.\.\.(\s*#.*)?$
|
||||||
|
^\s*\.\.\.(\s*#.*)?$
|
||||||
|
|
||||||
[run]
|
[run]
|
||||||
omit =
|
omit =
|
||||||
|
|
Loading…
Reference in New Issue
Block a user