Skip to content

Commit

Permalink
Linter fixes from new black
Browse files Browse the repository at this point in the history
Signed-off-by: Jussi Kukkonen <jkukkonen@google.com>
  • Loading branch information
jku committed Feb 1, 2024
1 parent bf01350 commit f72edc5
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions examples/manual_repo/basic_repo.py
Expand Up @@ -20,6 +20,7 @@
NOTE: Metadata files will be written to a 'tmp*'-directory in CWD.
"""

import os
import tempfile
from datetime import datetime, timedelta
Expand Down
1 change: 1 addition & 0 deletions examples/manual_repo/hashed_bin_delegation.py
Expand Up @@ -15,6 +15,7 @@
NOTE: Metadata files will be written to a 'tmp*'-directory in CWD.
"""

import hashlib
import os
import tempfile
Expand Down
2 changes: 1 addition & 1 deletion tests/test_metadata_serialization.py
Expand Up @@ -536,7 +536,7 @@ def test_delegation_serialization(self, test_case_data: str) -> None:

invalid_targetfiles: utils.DataSet = {
"no hashes": '{"length": 1}',
"no length": '{"hashes": {"sha256": "abc"}}'
"no length": '{"hashes": {"sha256": "abc"}}',
# The remaining cases are the same as for invalid_hashes and
# invalid_length datasets.
}
Expand Down
1 change: 1 addition & 0 deletions tests/test_trusted_metadata_set.py
@@ -1,4 +1,5 @@
"""Unit tests for 'tuf/ngclient/_internal/trusted_metadata_set.py'."""

import logging
import os
import sys
Expand Down
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

0 comments on commit f72edc5

Please sign in to comment.