Skip to content

Commit

Permalink
add ruff format and format 2 files
Browse files Browse the repository at this point in the history
Signed-off-by: E3E <ntanzill@purdue.edu>
  • Loading branch information
NicholasTanz committed Feb 18, 2024
1 parent 4a53013 commit cd543c9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions tests/test_updater_top_level_update.py
Expand Up @@ -555,9 +555,9 @@ def test_new_targets_hash_mismatch(self) -> None:
# Modify targets contents without updating
# snapshot's targets hashes
self.sim.targets.version += 1
self.sim.snapshot.meta["targets.json"].version = (
self.sim.targets.version
)
self.sim.snapshot.meta[
"targets.json"
].version = self.sim.targets.version
self.sim.snapshot.version += 1
self.sim.update_timestamp()

Expand Down
2 changes: 1 addition & 1 deletion tests/utils.py
Expand Up @@ -57,7 +57,7 @@ def run_sub_tests_with_dataset(
cases in dataset"""

def real_decorator(
function: Callable[[unittest.TestCase, Any], None]
function: Callable[[unittest.TestCase, Any], None],
) -> Callable[[unittest.TestCase], None]:
def wrapper(test_cls: unittest.TestCase) -> None:
for case, data in dataset.items():
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Expand Up @@ -48,6 +48,7 @@ deps =
lint_dirs = tuf examples tests verify_release
commands =
ruff check --diff {[testenv:lint]lint_dirs}
ruff format --diff {[testenv:lint]lint_dirs}
pylint -j 0 --rcfile=pyproject.toml {[testenv:lint]lint_dirs}

mypy {[testenv:lint]lint_dirs}
Expand Down

0 comments on commit cd543c9

Please sign in to comment.