[tool.autopep8] max_line_length = 120 [tool.pytest.ini_options] testpaths = ["tests"] # Search for tests in tests/ addopts = "--cov . --cov plugins --cov-report=term-missing --no-cov-on-fail" # --cov-fail-under 80" [tool.coverage.run] omit = [ "tests/*", "venv/*", ".venv/*", "dist.win32/*" ] plugins = [ "coverage_conditional_plugin" ] [tool.coverage.coverage_conditional_plugin.rules] # NB: The name versus content of all of these are inverted because of the way # they're used. When a pragma cites one it causes that code block to # **NOT** be considered for code coverage. # See Contributing.md#test-coverage for more details. sys-platform-win32 = "sys_platform != 'win32'" sys-platform-not-win32 = "sys_platform == 'win32'" sys-platform-darwin = "sys_platform != 'darwin'" sys-platform-not-darwin = "sys_platform == 'darwin'" sys-platform-linux = "sys_platform != 'linux'" sys-platform-not-linux = "sys_platform == 'linux'" sys-platform-not-known = "sys_platform in ('darwin', 'linux', 'win32')"