-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
160 lines (144 loc) · 4.81 KB
/
Copy pathpyproject.toml
File metadata and controls
160 lines (144 loc) · 4.81 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
[project]
name = "iso-audit"
version = "0.2.0a87"
description = "ISO 9001 + 27001 audit pipeline with pluggable source-adapters and human-in-the-loop modes"
readme = "README.md"
authors = [
{ name = "Conduction", email = "info@conduction.nl" },
]
maintainers = [
{ name = "Conduction", email = "info@conduction.nl" },
]
requires-python = ">=3.12"
license = { text = "EUPL-1.2" }
keywords = ["iso", "audit", "iso27001", "iso9001", "compliance"]
classifiers = [
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: European Union Public Licence 1.2 (EUPL 1.2)",
"Intended Audience :: Information Technology",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Topic :: Office/Business",
"Topic :: Security",
]
dependencies = [
"anthropic>=0.102.0",
"google-api-python-client>=2.196.0",
"google-auth>=2.52.0",
"htmldocx>=0.0.6",
"markdown>=3.10.2",
"openpyxl>=3.1.5",
"python-docx>=1.2.0",
"python-pptx>=1.0.2",
"python-dotenv>=1.2.2",
"pyyaml>=6.0.3",
"cryptography>=45.0.0",
"requests>=2.34.1",
"typer>=0.26.7",
"rich>=15.0.0",
"pydantic>=2.13.4",
"jinja2>=3.1.6",
"weasyprint>=69.0",
"fastapi>=0.137.1",
"uvicorn>=0.49.0",
"httpx>=0.28.1",
"pypdf>=6.15.0",
]
[project.scripts]
iso-audit = "iso_audit.cli:main"
[project.urls]
Repository = "https://github.com/ConductionNL/iso-audit"
[build-system]
requires = ["uv_build>=0.10.4,<0.11.0"]
build-backend = "uv_build"
# --- Tooling ---
[tool.ruff]
target-version = "py312"
line-length = 100
src = ["src", "tests"]
[tool.ruff.lint]
# E/W: pycodestyle, F: pyflakes, I: isort, N: pep8-naming, UP: pyupgrade,
# B: bugbear, SIM: simplify, RUF: ruff-specific.
select = ["E", "W", "F", "I", "N", "UP", "B", "SIM", "RUF"]
ignore = []
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = ["E501"] # tests mogen lange assertion-strings hebben
# classification/findings.py heeft system-prompts (multi-line strings) waar
# regel-breken de prompt-tekst zou wijzigen. E501 specifiek voor deze file.
"src/iso_audit/classification/findings.py" = ["E501"]
# normteksten/ bevat letterlijke (verkorte) eisen uit ISO 9001:2015 en
# 27001:2022 — line-breaking is artificieel en RUF001 ambiguous-glyphs
# zoals × (multiplicatie) zijn legitiem in Nederlandse normtekst.
"src/iso_audit/data/normteksten/*.py" = ["E501", "RUF001"]
# make_pptx.py is een hardcoded MT-snapshot waarbij de presentatie-tekst
# verbatim moet blijven — line-breaking zou de inhoud wijzigen.
"src/iso_audit/reporting/make_pptx.py" = ["E501"]
# Typer vereist typer.Option/Argument-aanroepen in argument-defaults (B008 is
# hier een bekende false-positive); E501 voor de option-helpregels.
"src/iso_audit/memo/cli.py" = ["B008", "E501"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
line-ending = "lf"
[tool.mypy]
python_version = "3.12"
strict = true
files = ["src"]
warn_unused_configs = true
warn_redundant_casts = true
warn_unused_ignores = true
# google-api-python-client + google-auth: geen py.typed marker.
# htmldocx: kleine third-party zonder stubs; conversie-boundary is one-shot.
# openpyxl: stubs (`types-openpyxl`) bestaan maar zijn onvolledig voor de
# Workbook/cell API; ignore op de import-boundary is praktischer.
# pptx: python-pptx 1.x heeft type-annotaties zonder py.typed; mypy ziet
# RGBColor/Inches/Pt als untyped — niet relevant voor de snapshot-module.
# weasyprint: geen py.typed; conversie-boundary HTML→PDF is one-shot.
[[tool.mypy.overrides]]
module = ["googleapiclient.*", "google.oauth2.*", "htmldocx", "openpyxl.*", "pptx.*", "weasyprint"]
ignore_missing_imports = true
# `make_pptx.py` is een snapshot-module die uitsluitend python-pptx-aanroepen
# bevat; mypy --strict's no-untyped-call slaat hier nergens op.
[[tool.mypy.overrides]]
module = "iso_audit.reporting.make_pptx"
disable_error_code = ["no-untyped-call"]
[tool.pytest.ini_options]
minversion = "8.0"
testpaths = ["tests"]
addopts = [
"-ra",
"--strict-markers",
"--strict-config",
]
markers = [
"contract: contract-tests die alle geregistreerde adapters van een protocol valideren",
"snapshot: snapshot-tests met fixture-data; byte-identiek match vereist",
]
[tool.coverage.run]
source = ["iso_audit"]
branch = true
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"raise NotImplementedError",
"if TYPE_CHECKING:",
]
show_missing = true
[tool.bandit]
# Skip B101 (assert) — pytest gebruikt assert
exclude_dirs = ["tests"]
skips = ["B101"]
[dependency-groups]
dev = [
"bandit>=1.9.4",
"mypy>=2.0.0",
"playwright>=1.62.0",
"pre-commit>=4.6.0",
"pytest>=9.0.3",
"pytest-cov>=7.1.0",
"ruff>=0.15.12",
"types-markdown>=3.10.2.20260508",
"types-pyyaml>=6.0.12.20260510",
"types-requests>=2.33.0.20260513",
]