Qlty config and code cleanup !1

merged merged by cmc on 2026-10-30 00:23 UTC · audit-labs/evidence-seal:cleanup into main

3 files changed, +55 −7

Layout: unified · split

.qlty/.gitignore added +7
@@ -0,0 +1,7 @@
1*
2!configs
3!configs/**
4!hooks
5!hooks/**
6!qlty.toml
7!.gitignore
.qlty/qlty.toml added +46
@@ -0,0 +1,46 @@
1config_version = "0"
2
3exclude_patterns = [
4 "**/vendor/**",
5 "**/node_modules/**",
6 "**/testdata/**",
7 "**/dist/**",
8 "**/.build/**",
9 "**/build/**",
10 "**/*.min.*",
11 "**/generated/**",
12 ".claude/**",
13 "**/Pods/**",
14]
15
16test_patterns = [
17 "**/test/**",
18 "**/tests/**",
19 "**/Tests/**",
20 "**/*_test.*",
21 "**/test_*.*",
22 "**/*.test.*",
23 "**/*Tests.swift",
24 "e2e/**",
25]
26
27[[source]]
28name = "default"
29default = true
30
31[[plugin]]
32name = "osv-scanner"
33
34[[plugin]]
35name = "trufflehog"
36
37# Early returns are guard clauses, which keep the happy path unindented.
38[smells.return_statements]
39enabled = false
40
41# Function and file complexity are left to review rather than counted.
42[smells.function_complexity]
43enabled = false
44
45[smells.file_complexity]
46enabled = false
evidence_seal/manifest.py +2 −7
@@ -117,13 +117,8 @@ class VerifyResult:
117117 @property
118118 def intact(self) -> bool:
119119 """True only if nothing drifted and the manifest is internally sound."""
120 return (
121 not self.modified
122 and not self.added
123 and not self.removed
124 and self.id_ok
125 and self.root_ok
126 )
120 drifted = self.modified or self.added or self.removed
121 return not drifted and self.id_ok and self.root_ok
127122
128123
129124def verify_manifest(