Skip to content

Commit

Permalink
Merge pull request #2547 from theupdateframework/dependabot/pip/test-…
Browse files Browse the repository at this point in the history
…and-lint-dependencies-de1c361fbc
  • Loading branch information
jku committed Feb 1, 2024
2 parents af4beb1 + f72edc5 commit 3ab89c5
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 7 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
4 changes: 2 additions & 2 deletions requirements/lint.txt
Expand Up @@ -6,9 +6,9 @@
# Lint tools
# (We are not so interested in the specific versions of the tools: the versions
# are pinned to prevent unexpected linting failures when tools update)
black==23.12.1
black==24.1.1
isort==5.13.2
pylint==3.0.3
mypy==1.8.0
bandit==1.7.6
bandit==1.7.7
pydocstyle==6.3.0
2 changes: 1 addition & 1 deletion requirements/test.txt
Expand Up @@ -4,4 +4,4 @@
-r pinned.txt

# coverage measurement
coverage==7.4.0
coverage==7.4.1
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 3ab89c5

Please sign in to comment.