Rust: use shared path utilities

This commit is contained in:
Paolo Tranquilli
2024-09-17 12:27:57 +02:00
parent aae33db137
commit 89a8cbc536
5 changed files with 7 additions and 32 deletions

View File

@@ -12,7 +12,7 @@ assert cargo, "no cargo binary found on `PATH`"
fmt = subprocess.run([cargo, "fmt", "--all", "--quiet"], cwd=this_dir)
for manifest in this_dir.rglob("Cargo.toml"):
if not manifest.is_relative_to(this_dir / "ql"):
if not manifest.is_relative_to(this_dir / "ql") and not manifest.is_relative_to(this_dir / "integration-tests"):
clippy = subprocess.run([cargo, "clippy", "--fix", "--allow-dirty", "--allow-staged", "--quiet"],
cwd=manifest.parent)
sys.exit(fmt.returncode or clippy.returncode)