We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5788cc0 commit 5835293Copy full SHA for 5835293
1 file changed
skills/intelligence-engine/scripts/repo-audit
@@ -59,12 +59,16 @@ def audit():
59
return findings
60
61
if __name__ == "__main__":
62
+ full = "--full" in sys.argv
63
+ args = [a for a in sys.argv[1:] if a != "--full"]
64
+ REPO = Path(args[0]) if args else Path.cwd()
65
f = audit()
66
+ cap = None if full else 12
67
if f:
- for line in f[:12]:
68
+ for line in f[:cap] if cap else f:
69
print(f" ! {line}")
- if len(f) > 12:
- print(f" … +{len(f)-12} more")
70
+ if cap and len(f) > cap:
71
+ print(f" … +{len(f)-cap} more (use --full for all)")
72
sys.exit(1)
73
else:
74
p = REPO / "pyproject.toml"
0 commit comments