We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 60facfa commit 625b4f5Copy full SHA for 625b4f5
1 file changed
docs/faq.md
@@ -383,7 +383,8 @@ want to explicitly set the `src` option in the extended configuration file:
383
```
384
385
Beyond this `src`-based detection, Ruff will also attempt to determine the current Python package
386
-for a given Python file, and mark imports from within the same package as first-party. For example,
+for a given Python file (determined via the existence of a `__init__.py` file in a directory),
387
+and mark imports from within the same package as first-party. For example,
388
above, `baz.py` would be identified as part of the Python package beginning at
389
`./my_project/src/foo`, and so any imports in `baz.py` that begin with `foo` (like `import foo.bar`)
390
would be considered first-party based on this same-package heuristic.
0 commit comments