Skip to content

Commit 2ad777d

Browse files
authored
Add section for uv (as done in Pyright) (#7525)
1 parent 8a91614 commit 2ad777d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

TROUBLESHOOTING.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,16 @@ Import hooks can provide an editable installation that is a more accurate repres
5050
- [compat mode](https://setuptools.pypa.io/en/latest/userguide/development_mode.html#legacy-behavior)
5151
- [strict mode](https://setuptools.pypa.io/en/latest/userguide/development_mode.html#strict-editable-installs)
5252

53+
54+
#### uv
55+
[uv](https://docs.astral.sh/uv/reference/settings/#config-settings) can be
56+
configured to avoid import hooks with
57+
58+
```toml
59+
[tool.uv]
60+
config-settings = { editable_mode = "compat" }
61+
```
62+
5363
#### Hatch / Hatchling
5464
[Hatchling](https://hatch.pypa.io/latest/config/build/#dev-mode) uses path-based `.pth` files by
5565
default. It will only use import hooks if you set `dev-mode-exact` to `true`.

0 commit comments

Comments
 (0)