File: pyproject.toml

package info (click to toggle)
pyopenssl 25.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,276 kB
  • sloc: python: 8,555; makefile: 116
file content (51 lines) | stat: -rw-r--r-- 1,100 bytes parent folder | download
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
[tool.coverage.run]
branch = true
relative_files = true
source = ["OpenSSL", "tests/"]

[tool.coverage.paths]
source = [
    "src/OpenSSL",
    "*.nox/*/lib/python*/site-packages/OpenSSL",
    "*.nox/*/lib/pypy*/site-packages/OpenSSL",
    "*.nox/pypy/site-packages/OpenSSL",
    "*.nox\\*\\Lib\\site-packages\\OpenSSL",
]

[tool.coverage.report]
exclude_also = ["assert False"]
show_missing = true

[tool.mypy]
warn_unused_configs = true
strict = true
strict_bytes = true

[[tool.mypy.overrides]]
module = "OpenSSL.*"
warn_return_any = false

[[tool.mypy.overrides]]
module = "cryptography.*"
ignore_missing_imports = true

[[tool.mypy.overrides]]
module = "cffi.*"
ignore_missing_imports = true

[[tool.mypy.overrides]]
module = ["pretend"]
ignore_missing_imports = true

[tool.pytest.ini_options]
addopts = "-r s --strict-markers"
testpaths = ["tests"]

[tool.ruff]
lint.select = ['E', 'F', 'I', 'W', 'UP', 'RUF']
line-length = 79
# Remove if/when we move setup.py python-requires metadata to pyproject.toml
target-version = "py37"

[tool.ruff.lint.isort]
known-first-party = ["OpenSSL", "tests"]