-
Notifications
You must be signed in to change notification settings - Fork 28
/
pyproject.toml
95 lines (81 loc) · 2.07 KB
/
pyproject.toml
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
[tool.black]
line-length = 79
target-version = ['py38', 'py39', 'py310', 'py311']
[tool.cibuildwheel]
skip = "*-manylinux_i686 *-win32"
test-requires = "-rrequirements/tests.txt"
test-command = "pytest {project}/tests"
[tool.cibuildwheel.linux]
before-all = [
"./scripts/download-mbedtls.sh $VERSION .local/src",
"./scripts/install-mbedtls.sh .local/src",
]
[tool.cibuildwheel.macos]
environment.UPSTREAM_DEST="$PWD"
before-all = [
"./scripts/download-mbedtls.sh $VERSION .local/src",
"./scripts/install-mbedtls.sh .local/src $UPSTREAM_DEST",
]
[tool.cibuildwheel.windows]
before-all = [
"powershell -Command Get-Host",
"powershell Get-Location",
"powershell New-Item -Path . -Name _lib -ItemType directory",
"powershell %CD%\\scripts\\download-mbedtls.ps1 %VERSION% _lib\\mbedtls",
"powershell %CD%\\scripts\\install-mbedtls.ps1 -ConfigurationType StaticLibrary _lib\\mbedtls",
"powershell %CD%\\scripts\\install-mbedtls.ps1 -ConfigurationType DynamicLibrary _lib\\mbedtls",
"dir %LIB%",
]
[tool.coverage.report]
exclude_lines = [
'\.\.\.',
'assert 0',
'def __repr__',
'free\(\w+\)',
'from typing import ',
'from typing_extensions import ',
'if sys\.version_info',
'pragma: no cover',
'raise MemoryError',
'raise NotImplementedError',
]
include = ['src/*']
[tool.coverage.run]
plugins = ['Cython.Coverage']
[tool.isort]
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
line_length = 79
[tool.mypy]
show_error_codes = true
strict = true
[tool.pylint.master]
extension-pkg-whitelist='mbedtls'
load-plugins=[
"pylint_per_file_ignores",
]
disable=[
"missing-class-docstring",
"missing-function-docstring",
"missing-module-docstring",
]
[tool.pylint-per-file-ignores]
"src/mbedtls/"="""
C0209,
R0801,
import-error,
useless-import-alias,
"""
"tests/"="redefined-outer-name"
[tool.pylint.messages_control]
disable = "C0103"
[tool.pylint.similarities]
ignore-comments = "yes"
ignore-docstrings = "yes"
min-similarity-lines = "8"
[tool.pytest.ini_options]
markers = "e2e: end-to-end tests"
[tool.ruff]
ignore = ["E701"]