nonebot2/tests/.coveragerc

28 lines
649 B
Plaintext
Raw Permalink Normal View History

[run]
plugins =
coverage_conditional_plugin
2021-12-16 17:28:57 +08:00
[report]
exclude_lines =
pragma: no cover
2021-12-16 23:22:25 +08:00
def __repr__
def __str__
@(typing\.)?overload
if (typing\.)?TYPE_CHECKING( is True)?:
2021-12-16 17:28:57 +08:00
@(abc\.)?abstractmethod
raise NotImplementedError
warnings\.warn
2023-12-25 11:51:10 +08:00
^\.\.\.$
pass
2021-12-16 23:22:25 +08:00
if __name__ == .__main__.:
[coverage_conditional_plugin]
rules =
"sys_platform != 'win32'": py-win32
"sys_platform != 'linux'": py-linux
"sys_platform != 'darwin'": py-darwin
"sys_version_info < (3, 11)": py-gte-311
"sys_version_info >= (3, 11)": py-lt-311
"package_version('pydantic') < (2,)": pydantic-v2
"package_version('pydantic') >= (2,)": pydantic-v1