Format test_clippy.py
@@ -9,14 +9,13 @@ from framework import utils
SUCCESS_CODE = 0
MACHINE = platform.machine()
-TARGETS = ["{}-unknown-linux-gnu".format(MACHINE),
- "{}-unknown-linux-musl".format(MACHINE)]
+TARGETS = [
+ "{}-unknown-linux-gnu".format(MACHINE),
+ "{}-unknown-linux-musl".format(MACHINE),
+]
-@pytest.mark.parametrize(
- "target",
- TARGETS
-)
+@pytest.mark.parametrize("target", TARGETS)
def test_rust_clippy(target):
"""
Test that clippy does not generate any errors/warnings.
@@ -24,5 +23,5 @@ def test_rust_clippy(target):
@type: build
"""
utils.run_cmd(
- 'cargo clippy --target {} --all --profile test'
- ' -- -D warnings'.format(target))
+ "cargo clippy --target {} --all --profile test" " -- -D warnings".format(target)
+ )
