Skip to content

Commit

Permalink
Flake update
Browse files Browse the repository at this point in the history
Signed-off-by: Henri Rosten <[email protected]>
  • Loading branch information
henrirosten committed Mar 27, 2024
1 parent d88fb82 commit 4cef9b1
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 20 deletions.
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/common/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# SPDX-License-Identifier: Apache-2.0

# pylint: disable=invalid-name, abstract-method
# pylint: disable=abstract-method

""" sbomnix utils """

Expand Down
2 changes: 1 addition & 1 deletion src/nixgraph/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
# SPDX-License-Identifier: Apache-2.0

# pylint: disable=too-few-public-methods, invalid-name
# pylint: disable=too-few-public-methods
# pylint: disable=too-many-instance-attributes

""" Python script to query and visualize nix package dependencies """
Expand Down
2 changes: 0 additions & 2 deletions src/nixmeta/scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
# SPDX-FileCopyrightText: 2023 Technology Innovation Institute (TII)
# SPDX-License-Identifier: Apache-2.0

# pylint: disable=invalid-name

""" Summarize nixpkgs meta-attributes """

import re
Expand Down
2 changes: 0 additions & 2 deletions src/nixupdate/nix_outdated.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
#
# SPDX-License-Identifier: Apache-2.0

# pylint: disable=invalid-name

""" Command-line tool to list outdated nix dependencies in priority order"""

import logging
Expand Down
1 change: 0 additions & 1 deletion src/repology/repology_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#
# SPDX-License-Identifier: Apache-2.0

# pylint: disable=invalid-name
# pylint: disable=too-few-public-methods, too-many-statements
# pylint: disable=too-many-instance-attributes, too-many-locals

Expand Down
2 changes: 1 addition & 1 deletion src/repology/repology_cve.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
# SPDX-License-Identifier: Apache-2.0

# pylint: disable=invalid-name too-many-locals
# pylint: disable=too-many-locals

""" Command-line interface to query CVE info from repology.org """

Expand Down
2 changes: 1 addition & 1 deletion src/sbomnix/cpe.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# SPDX-License-Identifier: Apache-2.0

# pylint: disable=invalid-name, too-few-public-methods
# pylint: disable=too-few-public-methods

""" Generate CPE (Common Platform Enumeration) identifiers"""

Expand Down
2 changes: 1 addition & 1 deletion src/sbomnix/meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# SPDX-License-Identifier: Apache-2.0

# pylint: disable=too-few-public-methods, invalid-name
# pylint: disable=too-few-public-methods

"""Cache nixpkgs meta information"""

Expand Down
2 changes: 1 addition & 1 deletion src/sbomnix/sbomdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
# SPDX-License-Identifier: Apache-2.0

# pylint: disable=invalid-name, too-many-instance-attributes, too-many-arguments
# pylint: disable=too-many-instance-attributes, too-many-arguments

""" Module for generating SBOMs in various formats """

Expand Down
5 changes: 3 additions & 2 deletions src/vulnxscan/vulnxscan_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#
# SPDX-License-Identifier: Apache-2.0

# pylint: disable=invalid-name
# pylint: disable=too-many-return-statements

"""
Expand Down Expand Up @@ -786,7 +785,9 @@ def load_whitelist(whitelist_csv_path):
# Interpret possible string values in "whitelist" column
# to boolean as follows:
df["whitelist"] = df["whitelist"].replace({"": True})
df["whitelist"] = df["whitelist"].replace({"False": False, "0": False})
df["whitelist"] = (
df["whitelist"].astype(str).replace({"False": False, "0": False})
)
df["whitelist"] = df["whitelist"].astype("bool")
return df

Expand Down
2 changes: 1 addition & 1 deletion tests/compare_deps.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
# SPDX-License-Identifier: Apache-2.0

# pylint: disable=invalid-name, too-many-locals
# pylint: disable=too-many-locals

""" Python script that compares dependencies between sbomnix and nixgraph """

Expand Down
2 changes: 0 additions & 2 deletions tests/compare_sboms.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
#
# SPDX-License-Identifier: Apache-2.0

# pylint: disable=invalid-name

""" Python script that compares two sboms """

import argparse
Expand Down
2 changes: 1 addition & 1 deletion tests/test_sbomnix.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# SPDX-License-Identifier: Apache-2.0

# pylint: disable=invalid-name, global-statement, redefined-outer-name
# pylint: disable=global-statement, redefined-outer-name
# pylint: disable=too-few-public-methods

"""Tests for sbomnix"""
Expand Down

0 comments on commit 4cef9b1

Please sign in to comment.