Skip to content

Commit a678ecc

Browse files
Jonathan Woollett-Lightroypat
andcommitted
ci: Test for unused cargo dependencies
From: Jonathan Woollett-Light <[email protected]> Adds test for unused cargo dependencies. Signed-off-by: Jonathan Woollett-Light <[email protected]> Co-authored-by: Patrick Roy <[email protected]> Signed-off-by: Patrick Roy <[email protected]>
1 parent a8a240b commit a678ecc

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
"""Enforces controls over dependencies."""
4+
5+
from host_tools.cargo_build import cargo
6+
7+
8+
def test_unused_dependencies():
9+
"""
10+
Test that there are no unused dependencies.
11+
"""
12+
cargo("udeps", "--all", nightly=True)

0 commit comments

Comments
 (0)