v0.1.0-pre.075
This commit is contained in:
5
scripts/audit_rust_workspace_rules.py
Executable file → Normal file
5
scripts/audit_rust_workspace_rules.py
Executable file → Normal file
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env python3
|
||||
# file: scripts/audit_rust_workspace_rules.py
|
||||
# version: 3
|
||||
# version: 4
|
||||
|
||||
"""Run the general, export-completeness and khadhroony workspace audits."""
|
||||
|
||||
@@ -10,7 +10,6 @@ import argparse
|
||||
import pathlib
|
||||
import subprocess
|
||||
|
||||
|
||||
def main() -> int:
|
||||
"""Run all independent audit scripts."""
|
||||
|
||||
@@ -23,12 +22,12 @@ def main() -> int:
|
||||
["python3", str(script_dir / "audit_rust_general_rules.py"), "--root", arguments.root],
|
||||
["python3", str(script_dir / "audit_rust_export_completeness.py"), "--root", arguments.root],
|
||||
["python3", str(script_dir / "audit_khadhroony_workspace_rules.py"), "--root", arguments.root],
|
||||
["python3", str(script_dir / "audit_pre_0_4_6_static_contracts.py"), "--root", arguments.root],
|
||||
]
|
||||
if arguments.report_only:
|
||||
for command in commands:
|
||||
command.append("--report-only")
|
||||
return max(subprocess.run(command, check=False).returncode for command in commands)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
raise SystemExit(main())
|
||||
|
||||
Reference in New Issue
Block a user