| 1 |
[tool.coverage.run] |
| 2 |
branch = true |
| 3 |
relative_files = true |
| 4 |
source = ["OpenSSL", "tests/"] |
| 5 |
|
| 6 |
[tool.coverage.paths] |
| 7 |
source = [ |
| 8 |
"src/OpenSSL", |
| 9 |
"*.nox/*/lib/python*/site-packages/OpenSSL", |
| 10 |
"*.nox/*/lib/pypy*/site-packages/OpenSSL", |
| 11 |
"*.nox/pypy/site-packages/OpenSSL", |
| 12 |
"*.nox\\*\\Lib\\site-packages\\OpenSSL", |
| 13 |
] |
| 14 |
|
| 15 |
[tool.coverage.report] |
| 16 |
exclude_also = ["assert False"] |
| 17 |
show_missing = true |
| 18 |
|
| 19 |
[tool.mypy] |
| 20 |
warn_unused_configs = true |
| 21 |
strict = true |
| 22 |
strict_bytes = true |
| 23 |
|
| 24 |
[[tool.mypy.overrides]] |
| 25 |
module = "OpenSSL.*" |
| 26 |
warn_return_any = false |
| 27 |
|
| 28 |
[[tool.mypy.overrides]] |
| 29 |
module = "cryptography.*" |
| 30 |
ignore_missing_imports = true |
| 31 |
|
| 32 |
[[tool.mypy.overrides]] |
| 33 |
module = "cffi.*" |
| 34 |
ignore_missing_imports = true |
| 35 |
|
| 36 |
[[tool.mypy.overrides]] |
| 37 |
module = ["pretend"] |
| 38 |
ignore_missing_imports = true |
| 39 |
|
| 40 |
[tool.pytest.ini_options] |
| 41 |
addopts = "-r s --strict-markers" |
| 42 |
testpaths = ["tests"] |
| 43 |
|
| 44 |
[tool.ruff] |
| 45 |
lint.select = ['E', 'F', 'I', 'W', 'UP', 'RUF'] |
| 46 |
line-length = 79 |
| 47 |
# Remove if/when we move setup.py python-requires metadata to pyproject.toml |
| 48 |
target-version = "py37" |
| 49 |
|
| 50 |
[tool.ruff.lint.isort] |
| 51 |
known-first-party = ["OpenSSL", "tests"] |