Skip to content

Folder name and case sensitivity on repo checkout directory and src layout #504

@cgravill

Description

@cgravill

When using fawltydeps with a repo using a src layout and mixed case folder it seems that imports in /tests don't find the package directory according to fawltydeps. We can workaround this by using --base-dir src .

To Reproduce
https://github.com/cgravill/DependenciesAndCasingReproduction

Unexpected:

/DependenciesAndCasingReproduction$ uv run fawltydeps

These imports appear to be undeclared dependencies:
- 'dependenciesandcasingreproduction'

Workaround:

/DependenciesAndCasingReproduction$ uv run fawltydeps --base-dir src

No undeclared or unused dependencies detected.

Success (copy to lower case directory that matches):

/dependenciesandcasingreproduction$ uv run fawltydeps

No undeclared or unused dependencies detected.

Environment

  • OS name + version: Ubuntu 24.04
  • Version of the code: 0.20.0

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