Skip to content

Commit 453ffa0

Browse files
authored
Update first-party environment.root docs (#1133)
ref. astral-sh/ruff#20263
1 parent 503cfe2 commit 453ffa0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/modules.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ then set [`environment.root`](./reference/configuration.md#root) in your `pyproj
2727
root = ["./app"]
2828
```
2929

30+
Note that `python` and `tests` folders are automatically added to the project `root` if they exist,
31+
and if they are not packages themselves (i.e. they do not contain an `__init__.py` file or an
32+
`__init__.pyi` file).
33+
3034
## Third-party modules
3135

3236
Third-party modules are Python packages that are not part of your project or the standard library.

0 commit comments

Comments
 (0)