-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathprecommit.log
More file actions
320 lines (256 loc) · 16.2 KB
/
precommit.log
File metadata and controls
320 lines (256 loc) · 16.2 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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
Ruff (project‑installed).................................................Failed
- hook id: ruff
- duration: 0.7s
- exit code: 2
error: unexpected argument '--fix' found
Usage: ruff [OPTIONS] <COMMAND>
For more information, try '--help'.
error: unexpected argument '--fix' found
Usage: ruff [OPTIONS] <COMMAND>
For more information, try '--help'.
error: unexpected argument '--fix' found
Usage: ruff [OPTIONS] <COMMAND>
For more information, try '--help'.
error: unexpected argument '--fix' found
Usage: ruff [OPTIONS] <COMMAND>
For more information, try '--help'.
error: unexpected argument '--fix' found
Usage: ruff [OPTIONS] <COMMAND>
For more information, try '--help'.
error: unexpected argument '--fix' found
Usage: ruff [OPTIONS] <COMMAND>
For more information, try '--help'.
error: unexpected argument '--fix' found
Usage: ruff [OPTIONS] <COMMAND>
For more information, try '--help'.
error: unexpected argument '--fix' found
Usage: ruff [OPTIONS] <COMMAND>
For more information, try '--help'.
error: unexpected argument '--fix' found
Usage: ruff [OPTIONS] <COMMAND>
For more information, try '--help'.
error: unexpected argument '--fix' found
Usage: ruff [OPTIONS] <COMMAND>
For more information, try '--help'.
error: unexpected argument '--fix' found
Usage: ruff [OPTIONS] <COMMAND>
For more information, try '--help'.
error: unexpected argument '--fix' found
Usage: ruff [OPTIONS] <COMMAND>
For more information, try '--help'.
error: unexpected argument '--fix' found
Usage: ruff [OPTIONS] <COMMAND>
For more information, try '--help'.
error: unexpected argument '--fix' found
Usage: ruff [OPTIONS] <COMMAND>
For more information, try '--help'.
error: unexpected argument '--fix' found
Usage: ruff [OPTIONS] <COMMAND>
For more information, try '--help'.
error: unexpected argument '--fix' found
Usage: ruff [OPTIONS] <COMMAND>
For more information, try '--help'.
error: unexpected argument '--fix' found
Usage: ruff [OPTIONS] <COMMAND>
For more information, try '--help'.
error: unexpected argument '--fix' found
Usage: ruff [OPTIONS] <COMMAND>
For more information, try '--help'.
error: unexpected argument '--fix' found
Usage: ruff [OPTIONS] <COMMAND>
For more information, try '--help'.
Mypy (project‑installed).................................................Failed
- hook id: mypy
- duration: 0.81s
- exit code: 2
.github/workflows/templates/python-template-pip.yml: error: Duplicate module named "__main__" (also at "docker/.gitkeep")
.github/workflows/templates/python-template-pip.yml: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#mapping-file-paths-to-modules for more info
.github/workflows/templates/python-template-pip.yml: note: Common resolutions include: a) using `--exclude` to avoid checking one of them, b) adding `__init__.py` somewhere, c) using `--explicit-package-bases` or adjusting MYPYPATH
Found 1 error in 1 file (errors prevented further checking)
generate_requirements.sh:10: error: invalid syntax; you likely need to run mypy using Python 3.12 or newer [syntax]
Found 1 error in 1 file (errors prevented further checking)
docs/reviews/review_request_template.md:48: error: invalid character '“' (U+201C) [syntax]
Found 1 error in 1 file (errors prevented further checking)
.gitleaks.toml:16: error: unexpected indent [syntax]
Found 1 error in 1 file (errors prevented further checking)
docs/source/rst/dev/scripts/validate_env_keys.rst:2: error: invalid syntax; you likely need to run mypy using Python 3.12 or newer [syntax]
Found 1 error in 1 file (errors prevented further checking)
.github/workflows/safety.yml:14: error: invalid character '–' (U+2013) [syntax]
Found 1 error in 1 file (errors prevented further checking)
docs/uml/LedgerBaseSchema.puml:58: error: unmatched '}' [syntax]
Found 1 error in 1 file (errors prevented further checking)
.github/workflows/prepare-poetry.yml:21: error: invalid decimal literal [syntax]
Found 1 error in 1 file (errors prevented further checking)
.github/scripts/pr-status-summary.js:1: error: invalid syntax; you likely need to run mypy using Python 3.12 or newer [syntax]
Found 1 error in 1 file (errors prevented further checking)
.github/workflows/security-snyk.yml:14: error: invalid character '–' (U+2013) [syntax]
Found 1 error in 1 file (errors prevented further checking)
.github/workflows/gh-pages.yml:13: error: invalid character '📚' (U+1F4DA) [syntax]
Found 1 error in 1 file (errors prevented further checking)
scripts/lint-yaml.txt:1: error: invalid syntax; you likely need to run mypy using Python 3.12 or newer [syntax]
Found 1 error in 1 file (errors prevented further checking)
sops.yaml:2: error: invalid decimal literal [syntax]
Found 1 error in 1 file (errors prevented further checking)
scripts/check_semgrep_bundles.sh:14: error: invalid syntax; you likely need to run mypy using Python 3.12 or newer [syntax]
Found 1 error in 1 file (errors prevented further checking)
Makefile:2: error: invalid syntax; you likely need to run mypy using Python 3.12 or newer [syntax]
Found 1 error in 1 file (errors prevented further checking)
.hadolint.yaml: error: Duplicate module named "__main__" (also at "docs/wiki/API.md")
.hadolint.yaml: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#mapping-file-paths-to-modules for more info
.hadolint.yaml: note: Common resolutions include: a) using `--exclude` to avoid checking one of them, b) adding `__init__.py` somewhere, c) using `--explicit-package-bases` or adjusting MYPYPATH
Found 1 error in 1 file (errors prevented further checking)
.github/PULL_REQUEST_TEMPLATE.md:3: error: invalid syntax; you likely need to run mypy using Python 3.12 or newer [syntax]
Found 1 error in 1 file (errors prevented further checking)
docs/source/_templates/python_template.rst.j2:4: error: invalid syntax; you likely need to run mypy using Python 3.12 or newer [syntax]
Found 1 error in 1 file (errors prevented further checking)
poetry.toml:15: error: invalid syntax; you likely need to run mypy using Python 3.12 or newer [syntax]
Found 1 error in 1 file (errors prevented further checking)
Bandit (project‑installed)...............................................Passed
- hook id: bandit
- duration: 0.39s
[main] INFO profile include tests: None
[main] INFO profile exclude tests: None
[main] INFO cli include tests: None
[main] INFO cli exclude tests: None
[main] INFO running on Python 3.11.12
Run started:2025-04-23 14:16:49.463073
Test results:
No issues identified.
Code scanned:
Total lines of code: 207
Total lines skipped (#nosec): 0
Total potential issues skipped due to specifically being disabled (e.g., #nosec BXXX): 0
Run metrics:
Total issues (by severity):
Undefined: 0
Low: 0
Medium: 0
High: 0
Total issues (by confidence):
Undefined: 0
Low: 0
Medium: 0
High: 0
Files skipped (0):
Semgrep (project‑installed)..............................................Passed
- hook id: semgrep
- duration: 1.92s
nox > Running session semgrep_ci
nox > Re-using existing virtual environment at .nox/semgrep_ci.
nox > python -m pip install --upgrade-strategy eager semgrep==1.119.0
nox > ▶️ semgrep ci --jobs 4 --sarif --output docs/reports/sarif/semgrep-ci.sarif --config r/python.flask --config p/cwe-top-25 --config p/security-audit --config p/secure-defaults --config p/r2c-best-practices --config p/owasp-top-ten --config p/sql-injection --config p/command-injection --config p/xss --config p/github-actions --config p/semgrep-misconfigurations --config p/ci --config p/semgrep-rule-lints --config p/semgrep-rule-ci --config custom-rules.yml
nox > semgrep ci --jobs 4 --sarif --output docs/reports/sarif/semgrep-ci.sarif --config r/python.flask --config p/cwe-top-25 --config p/security-audit --config p/secure-defaults --config p/r2c-best-practices --config p/owasp-top-ten --config p/sql-injection --config p/command-injection --config p/xss --config p/github-actions --config p/semgrep-misconfigurations --config p/ci --config p/semgrep-rule-lints --config p/semgrep-rule-ci --config custom-rules.yml
Cannot run `semgrep ci` with --config while logged in. The `semgrep ci` command will upload findings to semgrep-app and those findings must come from rules configured there. Drop the `--config` to use rules configured on semgrep.dev or log out.
There were errors during analysis but Semgrep will succeed because there were no blocking findings, use --no-suppress-errors if you want Semgrep to fail when there are errors.
nox > ✅ Semgrep SARIF report saved to docs/reports/sarif/semgrep-ci.sarif
nox > Session semgrep_ci was successful.
Vulture (project‑installed)..............................................Passed
- hook id: vulture
- duration: 5.29s
nox > Running session vulture
nox > Re-using existing virtual environment at .nox/vulture.
nox > python -m pip install poetry==1.8.3
nox > poetry install --with dev
nox > 🛡️ Using whitelist: vulture_whitelist.py
nox > 🔍 Running vulture (min-confidence=90)...
nox > vulture vulture_whitelist.py src tests --min-confidence 90
nox > Session vulture was successful.
ShellCheck (project‑installed)...........................................Passed
- hook id: shellcheck
- duration: 1.11s
nox > Running session shellcheck
nox > Checking for tool: shellcheck
nox > No shell scripts found to lint.
nox > Session shellcheck was successful.
Codespell (project‑installed)............................................Passed
- hook id: codespell
- duration: 0.84s
check yaml...............................................................Passed
- hook id: check-yaml
- duration: 0.07s
fix end of files.........................................................Passed
- hook id: end-of-file-fixer
- duration: 0.06s
trim trailing whitespace.................................................Passed
- hook id: trailing-whitespace
- duration: 0.07s
debug statements (python)................................................Passed
- hook id: debug-statements
- duration: 0.06s
fix utf-8 byte order marker..............................................Passed
- hook id: fix-byte-order-marker
- duration: 0.08s
fix requirements.txt.....................................................Passed
- hook id: requirements-txt-fixer
- duration: 0.02s
Detect secrets...........................................................Failed
- hook id: detect-secrets
- duration: 0.63s
- exit code: 1
ERROR: Potential secrets about to be committed to git repo!
Secret Type: Hex High Entropy String
Location: .pre-commit-config.yaml:105
Secret Type: Hex High Entropy String
Location: .pre-commit-config.yaml:116
Possible mitigations:
- For information about putting your secrets in a safer place, please ask in
#security
- Mark false positives with an inline `pragma: allowlist secret` comment
If a secret has already been committed, visit
https://help.github.com/articles/removing-sensitive-data-from-a-repository
Detect hardcoded secrets.................................................Passed
- hook id: gitleaks
- duration: 0.07s
○
│╲
│ ○
○ ░
░ gitleaks
[90m7:16AM[0m [32mINF[0m 1 commits scanned.
[90m7:16AM[0m [32mINF[0m scan completed in 62.9ms
[90m7:16AM[0m [32mINF[0m no leaks found
markdownlint.............................................................Failed
- hook id: markdownlint
- duration: 0.41s
- exit code: 1
docs/WTD-Runbook.md:3 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "description = Documentation fo..."]
docs/WTD-Runbook.md:5 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "category = docs"]
docs/WTD-Runbook.md:7 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "usage = Reference for develope..."]
docs/WTD-Runbook.md:9 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "behavior = Explains the trigge..."]
docs/WTD-Runbook.md:11 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "inputs = none"]
docs/WTD-Runbook.md:13 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "outputs = none"]
docs/WTD-Runbook.md:15 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "dependencies = What-The-Diff C..."]
docs/WTD-Runbook.md:17 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "author = LedgerBase Team"]
docs/WTD-Runbook.md:19 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "last_modified = 2023-11-15"]
docs/WTD-Runbook.md:21 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "changelog = Initial version"]
docs/WTD-Runbook.md:23 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "What The Diff PR Summaries Run..."]
.github/PULL_REQUEST_TEMPLATE.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Summary"]
docs/semantic_release.md:3 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "description = Guide for using ..."]
docs/semantic_release.md:5 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "category = docs"]
docs/semantic_release.md:7 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "usage = Reference for develope..."]
docs/semantic_release.md:9 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "behavior = Explains how differ..."]
docs/semantic_release.md:11 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "inputs = Developer commit mess..."]
docs/semantic_release.md:13 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "outputs = Semantic version num..."]
docs/semantic_release.md:15 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "dependencies = semantic-releas..."]
docs/semantic_release.md:17 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "author = LedgerBase Team"]
docs/semantic_release.md:19 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "last_modified = 2023-11-15"]
docs/semantic_release.md:21 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "changelog = Initial version"]
docs/semantic_release.md:23 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Semantic‑Release Guide"]
SECURITY.md:3 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "description = Security policy ..."]
SECURITY.md:5 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "category = security"]
SECURITY.md:7 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "usage = Reference for users an..."]
SECURITY.md:9 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "behavior = Outlines supported ..."]
SECURITY.md:11 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "inputs = none"]
SECURITY.md:13 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "outputs = none"]
SECURITY.md:15 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "dependencies = none"]
SECURITY.md:17 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "author = LedgerBase Team"]
SECURITY.md:19 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "last_modified = 2023-11-15"]
SECURITY.md:21 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "changelog = Initial version"]
SECURITY.md:23 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Security Policy"]
SECURITY.md:113 MD036/no-emphasis-as-heading Emphasis used instead of a heading [Context: "Last updated: November 15, 202..."]
Validate Required Keys in .env.prod.sops.yaml........(no files to check)Skipped
- hook id: validate-env-prod-sops
Forbid .env.prod commits.............................(no files to check)Skipped
- hook id: forbid-new-env-prod
Validate file header metadata........................(no files to check)Skipped
- hook id: validate-file-headers