1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
|
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[tool.pytest.ini_options]
addopts = """--strict-markers -rfEX"""
markers = [
"client_data",
"controller_data",
"handler_data",
]
# region #### coverage.py settings ###########################################
[tool.coverage.run]
branch = true
parallel = true
omit = [
"aiosmtpd/docs/*",
"aiosmtpd/qa/*",
"aiosmtpd/testing/*",
"aiosmtpd/tests/*",
".tox/*",
"*/helpers/pycharm/*",
"*/hostedtoolcache/*", # GitHub Actions site-packages location
]
plugins = [
"coverage_conditional_plugin"
]
[tool.coverage.paths]
source = [
"aiosmtpd",
]
[tool.coverage.coverage_conditional_plugin.rules]
# Here we specify our pragma rules:
py-lt-312 = "sys_version_info < (3, 12)"
py-lt-310 = "sys_version_info < (3, 10)"
has-pwd = "is_installed('pwd')"
on-win32 = "sys_platform == 'win32'"
on-wsl = "'Microsoft' in platform_release"
# On Windows, platform.release() returns the Windows version (e.g., "7" or "10")
# On Linux (incl. WSL), platform.release() returns the kernel version.
# As of 2021-02-07, only WSL has a kernel with "Microsoft" in the version.
on-not-win32 = "sys_platform != 'win32'"
on-cygwin = "sys_platform == 'cygwin'"
no-unixsock = "sys_platform in {'win32', 'cygwin'}"
[tool.coverage.report]
exclude_lines = [
"pragma: nocover",
"pragma: no cover",
"@abstract",
'class \S+\(Protocol\):'
]
fail_under = 100
show_missing = true
[tool.coverage.html]
directory = "htmlcov/${TOX_ENV_NAME}"
title = "aiosmtpd coverage for ${TOX_ENV_NAME}"
[tool.coverage.xml]
output = "_dump/coverage-${INTERP}.xml"
# endregion
[tool.check-manifest]
ignore = [
"examples/**",
]
[tool.isort]
profile = "black"
multi_line_output = 3
known_local_folder = [
"aiosmtpd"
]
combine_as_imports = true
|