BSK-W0012
warning
Unused dependency
Fires when a package is declared in project.dependencies but no module in the workspace imports it. This indicates a dependency that can be removed, reducing the project's dependency footprint.
This is a **whole-module-only** diagnostic — it requires scanning all files in the workspace to determine which packages are actually imported. The rule currently provides the skeleton; it activates when the workspace layer provides aggregate import data.
How to handle it
Every rule is on by default — strict is the default, not a cage. You can dial
BSK-W0012 down per-file or per-path from your editor or
pyproject.toml, or fix the code
so it type-checks. See the Warnings rules and
the complete diagnostic reference.
Canonical URL: https://www.basilisk-python.dev/warnings/BSK-W0012