Skip to content

Commit

Permalink
chore: silence bugged pylint check with comment
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Selwyn-Smith <benselwynsmith@googlemail.com>
  • Loading branch information
benmss committed Feb 17, 2025
1 parent 2786fb3 commit 30a26eb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/macaron/slsa_analyzer/checks/build_script_check.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2022 - 2024, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2022 - 2025, Oracle and/or its affiliates. All rights reserved.
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/.

"""This module contains the BuildScriptCheck class."""
Expand Down Expand Up @@ -27,6 +27,10 @@ class BuildScriptFacts(CheckFacts):

__tablename__ = "_build_script_check"

# This check is disabled here due to a bug in pylint. The Mapped class triggers a false positive.
# It may arbitrarily become true that this is no longer needed in this check, or will be needed in another check.
# pylint: disable=unsubscriptable-object

#: The primary key.
id: Mapped[int] = mapped_column(ForeignKey("_check_facts.id"), primary_key=True) # noqa: A003

Expand Down
4 changes: 4 additions & 0 deletions src/macaron/slsa_analyzer/checks/provenance_commit_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ class ProvenanceDerivedCommitFacts(CheckFacts):

__tablename__ = "_provenance_derived_commit_check"

# This check is disabled here due to a bug in pylint. The Mapped class triggers a false positive.
# It may arbitrarily become true that this is no longer needed in this check, or will be needed in another check.
# pylint: disable=unsubscriptable-object

#: The primary key.
id: Mapped[int] = mapped_column(ForeignKey("_check_facts.id"), primary_key=True) # noqa: A003

Expand Down

0 comments on commit 30a26eb

Please sign in to comment.