Skip to content

Commit cd543c9

Browse files
committed
add ruff format and format 2 files
Signed-off-by: E3E <ntanzill@purdue.edu>
1 parent 4a53013 commit cd543c9

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

tests/test_updater_top_level_update.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -555,9 +555,9 @@ def test_new_targets_hash_mismatch(self) -> None:
555555
# Modify targets contents without updating
556556
# snapshot's targets hashes
557557
self.sim.targets.version += 1
558-
self.sim.snapshot.meta["targets.json"].version = (
559-
self.sim.targets.version
560-
)
558+
self.sim.snapshot.meta[
559+
"targets.json"
560+
].version = self.sim.targets.version
561561
self.sim.snapshot.version += 1
562562
self.sim.update_timestamp()
563563

tests/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def run_sub_tests_with_dataset(
5757
cases in dataset"""
5858

5959
def real_decorator(
60-
function: Callable[[unittest.TestCase, Any], None]
60+
function: Callable[[unittest.TestCase, Any], None],
6161
) -> Callable[[unittest.TestCase], None]:
6262
def wrapper(test_cls: unittest.TestCase) -> None:
6363
for case, data in dataset.items():

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ deps =
4848
lint_dirs = tuf examples tests verify_release
4949
commands =
5050
ruff check --diff {[testenv:lint]lint_dirs}
51+
ruff format --diff {[testenv:lint]lint_dirs}
5152
pylint -j 0 --rcfile=pyproject.toml {[testenv:lint]lint_dirs}
5253

5354
mypy {[testenv:lint]lint_dirs}

0 commit comments

Comments
 (0)