[Django]-How to provide a source directory in the [tool.django-stubs] directive of a pyproject.tom file?

3👍

using this one helped me https://mypy.readthedocs.io/en/stable/config_file.html#confval-mypy_path

i added to settings [mypy]
mypy_path = $MYPY_CONFIG_FILE_DIR/src

1👍

Use the --config-file

cd src
poetry run mypy . --config-file=../pyproject.toml
👤Pando

Leave a comment