-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathpyproject.toml
More file actions
92 lines (79 loc) · 1.88 KB
/
Copy pathpyproject.toml
File metadata and controls
92 lines (79 loc) · 1.88 KB
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
[project]
name = "python-pam"
version = "2.1.0-beta1"
description = ""
authors = [{name = "David Ford", email = "david@blue-labs.org"}]
readme = "README.md"
requires-python = ">=3.11"
dependencies = []
#[project.scripts]
#lint = "pylint"
#test = "pytest"
[tool.poetry]
packages = [{include = "pam", from = "python-pam"}]
[tool.poetry.group.dev.dependencies]
pytest = "^9.1.1"
pytest-cov = "^7.1.0"
pylint = "^4.0.6"
tox = "^4.0.0"
bandit = "*"
mypy = "*"
[tool.poetry.group.test.dependencies]
pytest = "^9.1.1"
pytest-cov = "^7.1.0"
pytest-env = "^1.7.0"
tox = "*"
flake8 = "*"
pylint = "*"
[tool.coverage.run]
source = ["pam"]
omit = ["*/tests/*", "*/test_*.py"]
[tool.coverage.report]
precision = 2
show_missing = true
skip_covered = false
fail_under = 85.0
[tool.bandit]
exclude_dirs = ["./venv", "./test", ]
recursive = true
[tool.pylint.main]
jobs = 0
[tool.pylint.format]
max-line-length = 120
[tool.pylint."messages control"]
disable = [
"too-many-arguments",
"too-many-positional-arguments",
"too-many-branches",
"too-many-statements",
"too-many-return-statements",
"too-many-locals",
"too-many-instance-attributes",
"too-few-public-methods",
"wrong-import-position", # Imports are intentionally after version check
# ctypes symbols are assigned at runtime in PamAuthenticator._ensure_libs
"not-callable",
]
[tool.mypy]
python_version = "3.12"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = false
disallow_incomplete_defs = false
check_untyped_defs = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
strict_equality = true
ignore_missing_imports = true
files = ["python-pam/pam"]
[[tool.mypy.overrides]]
module = [
"ctypes.*",
"ctypes.util.*",
]
ignore_missing_imports = true
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"