Credibility pass over the Green Man generator
Turn audit.py into a run() function and drop audit_run.py, which only existed to import it quietly. Remove unused parameters, keys, helpers and imports from draw.py, manifest.py and stl_build.py, and the source file names in stl_build.FILES that pointed at nothing. Keep the brow strip's taper and knob positions in geom.py only. Correct comments and docstrings that disagreed with the code, and the README's claim about counts. The page changes only in markup: no stray spaces in class attributes, and three CSS declarations that did nothing are gone. Guide HTML, templates and print files are byte-identical apart from that. Credibility pass over a7c04e5..HEAD; the next one can scope from here. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
b86153a9fd
commit
f2bb87caeb
15 files changed
+148
-151
No files matched your search
@@ -11,9 +11,9 @@
|
||||
Order matters: the print files are checked first because the guides quote the results."""
|
||||
import shutil, sys, zipfile
|
||||
from pathlib import Path
|
||||
from paths import ROOT, OUT, ASSETS, SITE
|
||||
from paths import OUT, ASSETS, SITE
|
||||
|
||||
STAMP = (2026, 1, 1, 0, 0, 0) # fixed date inside the zips, so an unchanged kit gives an unchanged zip
|
||||
STAMP = (2026, 1, 1, 0, 0, 0) # fixed date inside the zips, so a zip changes only when its contents do
|
||||
|
||||
def zip_write(path, entries):
|
||||
with zipfile.ZipFile(path, 'w', zipfile.ZIP_DEFLATED) as z:
|
||||
@@ -27,8 +27,9 @@ def main(publish=True):
|
||||
bad = {n: r['verdict'] for n, r in report.items() if r['verdict'].startswith('FAIL')}
|
||||
assert not bad, f'print files failed the printability check: {bad}'
|
||||
|
||||
import audit_run
|
||||
problems = audit_run.run()
|
||||
import audit
|
||||
problems = audit.run(verbose=False)
|
||||
print(f'audit: {len(problems)} problems')
|
||||
assert not problems, f'audit found problems: {problems}'
|
||||
import build_templates, build_guides, build_web
|
||||
pdfs = [build_templates.build(), build_guides.build('build'), build_guides.build('paint')]
|
||||
|
||||
Reference in new issue
Block a user