Skip to content

Cannot detect imported path does not exist #6327

@redcray

Description

@redcray

xx.aa is a non-existent path, ruff indeed cannot resolve to this path, but did not give any hint.
I don't know the specific rules of grammar detection, but I think this is a feature that can be supported?

Thanks!

  • A minimal code snippet that reproduces the bug.
from xx.aa import Config
Config()
  • The command you invoked (e.g., ruff /path/to/file.py --fix), ideally including the --isolated flag.
ruff check .
  • The current Ruff settings (any relevant sections from your pyproject.toml).
    none

  • The current Ruff version (ruff --version).
    ruff 0.0.282

Metadata

Metadata

Assignees

No one assigned

    Labels

    ruleImplementing or modifying a lint rule

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions