FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

lint fixes · theupdateframework/python-tuf@80f6126 · GitHub

Commit 80f6126

Browse files
committed
lint fixes
* Add copyright notices * Add noqa comments for existing API that breaks LR0917 (Too many positional arguments) Signed-off-by: Jussi Kukkonen <jkukkonen@google.com>
1 parent 2a5f670 commit 80f6126

23 files changed

Lines changed: 42 additions & 22 deletions

‎examples/manual_repo/basic_repo.py‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright 2021-2024, New York University and the TUF contributors
2+
# SPDX-License-Identifier: MIT OR Apache-2.0
3+
14
"""
25
A TUF repository example using the low-level TUF Metadata API.
36

‎examples/manual_repo/hashed_bin_delegation.py‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright 2021-2025, New York University and the TUF contributors
2+
# SPDX-License-Identifier: MIT OR Apache-2.0
3+
14
"""
25
A TUF hash bin delegation example using the low-level TUF Metadata API.
36

‎examples/manual_repo/succinct_hash_bin_delegations.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright New York University and the TUF contributors
1+
# Copyright 2022-2024, New York University and the TUF contributors
22
# SPDX-License-Identifier: MIT OR Apache-2.0
33
"""
44
A TUF succinct hash bin delegation example using the low-level TUF Metadata API.

‎tests/__init__.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Copyright 2013-2024, the TUF contributors
2+
# SPDX-License-Identifier: MIT OR Apache-2.0

‎tests/generated_data/__init__.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Copyright 2013-2022, New York University and the TUF contributors
2+
# SPDX-License-Identifier: MIT OR Apache-2.0

‎tests/generated_data/generate_md.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
"""Script for generating new metadata files."""
2-
3-
# Copyright New York University and the TUF contributors
1+
# Copyright 2022-2024, New York University and the TUF contributors
42
# SPDX-License-Identifier: MIT OR Apache-2.0
53

4+
"""Script for generating new metadata files."""
5+
66
from __future__ import annotations
77

88
import os

‎tests/test_metadata_eq_.py‎

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

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

‎tests/test_metadata_generation.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
"""Unit tests for 'tests/generated_data/generate_md.py'."""
2-
3-
# Copyright New York University and the TUF contributors
1+
# Copyright 2022-2024, New York University and the TUF contributors
42
# SPDX-License-Identifier: MIT OR Apache-2.0
53

4+
"""Unit tests for 'tests/generated_data/generate_md.py'."""
5+
66
import sys
77
import unittest
88

‎tests/test_metadata_serialization.py‎

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

44
"""Unit tests testing tuf/api/metadata.py classes

‎tests/test_trusted_metadata_set.py‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright 2021-2026, the TUF contributors
2+
# SPDX-License-Identifier: MIT OR Apache-2.0
3+
14
"""Unit tests for 'tuf/ngclient/_internal/trusted_metadata_set.py'."""
25

36
from __future__ import annotations

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL