We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1cebbf2 commit 68a0c65Copy full SHA for 68a0c65
docs/source/config_file.rst
@@ -177,6 +177,11 @@ section of the command line docs.
177
Multiple paths are always separated with a ``:`` or ``,`` regardless of the platform.
178
User home directory and environment variables will be expanded.
179
180
+ Relative paths are treated relative to the working directory of the mypy command,
181
+ not the config file.
182
+ Use the ``MYPY_CONFIG_FILE_DIR`` environment variable to refer to paths relative to
183
+ the config file (e.g. ``mypy_path = $MYPY_CONFIG_FILE_DIR/src``).
184
+
185
This option may only be set in the global section (``[mypy]``).
186
187
**Note:** On Windows, use UNC paths to avoid using ``:`` (e.g. ``\\127.0.0.1\X$\MyDir`` where ``X`` is the drive letter).
0 commit comments