Closed jamesbraza closed 2 months ago
I realized this is a permutation of https://github.com/dosisod/refurb/issues/246, and can be worked around by:
rye run refurb -- . --exclude=src.package
If there's nothing else to be done here, feel free to close this out
Steps to Reproduce
I have a Rye project where my toolchain includes https://github.com/dosisod/refurb. I am using
refurb==2.0.0
.Running
rye run refurb .
, I geterror: Source file found twice under different module names
.I have traced it to be because of the
--explicit-package-bases
argument thatrefurb
passes tomypy
: https://github.com/dosisod/refurb/blob/v2.0.0/refurb/main.py#L141I guess I am wondering, is there anything I can do to work around this?
Expected Result
Rye structure can work with
rye run refurb .
Actual Result
Version Info
rye 0.36.0 commit: 0.36.0 (2024-07-07) platform: macos (aarch64) self-python: cpython@3.12.3 symlink support: true uv enabled: true
Stacktrace
No response