check-wheel-contents icon indicating copy to clipboard operation
check-wheel-contents copied to clipboard

W002 false positive

Open pmeier opened this issue 5 years ago • 1 comments

Consider the following structure of my package:

.
├── bar
│   ├── baz.py
│   └── __init__.py
├── foo
│   ├── baz.py
│   └── __init__.py
└── __init__.py

In both foo/__init__.py and bar/__init__.py I do from .baz import *. Checking this returns W002: Wheel contains duplicate files. This is technically correct, but in this case I feel like this is a false positive.

pmeier avatar Jul 13 '20 12:07 pmeier

This is W002 working as intended. I have plans to at some point support configuring allowed sets of duplicate files, which would make it possible to ignore just this occurrence while still picking up others, but I don't know when I'll get around to that. For now, my primary suggestion would be to just disable the W002 check.

jwodder avatar Jul 13 '20 14:07 jwodder