Skip to content

Commit 884cae9

Browse files
committed
lint: Update formatting for ruff 3.x
Signed-off-by: Jussi Kukkonen <jkukkonen@google.com>
1 parent 5c0b3ac commit 884cae9

18 files changed

Lines changed: 19 additions & 31 deletions

examples/manual_repo/succinct_hash_bin_delegations.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
1818
NOTE: Metadata files will be written to a 'tmp*'-directory in CWD.
1919
"""
20+
2021
import math
2122
import os
2223
import tempfile

tests/repository_simulator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Copyright 2021, New York University and the TUF contributors
44
# SPDX-License-Identifier: MIT OR Apache-2.0
55

6-
""""Test utility to simulate a repository
6+
"""Test utility to simulate a repository
77
88
RepositorySimulator provides methods to modify repository metadata so that it's
99
easy to "publish" new repository versions with modified metadata, while serving

tests/test_api.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22

33
# Copyright 2020, New York University and the TUF contributors
44
# SPDX-License-Identifier: MIT OR Apache-2.0
5-
""" Unit tests for api/metadata.py
6-
7-
"""
5+
"""Unit tests for api/metadata.py"""
86

97
import json
108
import logging

tests/test_examples.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
#!/usr/bin/env python
22
# Copyright 2020, New York University and the TUF contributors
33
# SPDX-License-Identifier: MIT OR Apache-2.0
4-
""" Unit tests for 'examples' scripts.
4+
"""Unit tests for 'examples' scripts."""
55

6-
"""
76
import glob
87
import os
98
import shutil

tests/test_fetcher_ng.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
# Copyright 2021, New York University and the TUF contributors
44
# SPDX-License-Identifier: MIT OR Apache-2.0
55

6-
"""Unit test for RequestsFetcher.
7-
"""
6+
"""Unit test for RequestsFetcher."""
87

98
import io
109
import logging

tests/test_metadata_eq_.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
"""Test __eq__ implementations of classes inside tuf/api/metadata.py."""
77

8-
98
import copy
109
import os
1110
import sys

tests/test_metadata_generation.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
# Copyright New York University and the TUF contributors
44
# SPDX-License-Identifier: MIT OR Apache-2.0
55

6-
76
import sys
87
import unittest
98

tests/test_metadata_serialization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright New York University and the TUF contributors
22
# SPDX-License-Identifier: MIT OR Apache-2.0
33

4-
""" Unit tests testing tuf/api/metadata.py classes
4+
"""Unit tests testing tuf/api/metadata.py classes
55
serialization and deserialization.
66
77
"""

tests/test_updater_fetch_target.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"""Test 'Fetch target' from 'Detailed client workflow' as well as
77
target files storing/loading from cache.
88
"""
9+
910
import os
1011
import sys
1112
import tempfile

tests/test_updater_ng.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
# Copyright 2021, New York University and the TUF contributors
44
# SPDX-License-Identifier: MIT OR Apache-2.0
55

6-
"""Test Updater class
7-
"""
6+
"""Test Updater class"""
87

98
import logging
109
import os

0 commit comments

Comments
 (0)