Skip to content

fix: Remove unnecessary f-string prefix in vulnrichment.py #2072

Description

@samay2504

Summary

The file vulnerabilities/importers/vulnrichment.py contains an f-string without any placeholders at line 32, which violates ruff rule F541.

Problem

Using f"..." syntax without any {variable} placeholders inside is:

  • Unnecessary overhead (f-strings are marginally slower than regular strings)
  • Misleading to readers who expect interpolation
  • A code quality issue flagged by linters

Location

File: vulnerabilities/importers/vulnrichment.py
Line: 32
Current code:

for file_path in base_path.glob(f"**/**/*.json"):

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions