Skip to content

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

@samay2504

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"):

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