Skip to content

Remove follow-imports argument which may conflict with projects#90

Merged
karthiknadig merged 1 commit intomicrosoft:mainfrom
PeterJCLaw:remove-explicit-follow-imports
Jul 18, 2023
Merged

Remove follow-imports argument which may conflict with projects#90
karthiknadig merged 1 commit intomicrosoft:mainfrom
PeterJCLaw:remove-explicit-follow-imports

Conversation

@PeterJCLaw
Copy link
Copy Markdown
Contributor

mypy prioritises values from configuration on its command line over that provided in configuration files. This means that the value previously provided here could override the settings for a project, cause spurious errors and/or hiding true errors.

Removing this default value allows users freedom to configure their projects however they like, without the extension injecting unexpected additional configuration within the IDE context.

Tested manually by opening a project which has a setup.cfg and changing the follow_imports value within that file, then checking the errors reported from mypy change accordingly.

Fixes #89

mypy prioritises values from configuration on its command line
over that provided in configuration files. This means that the
value previously provided here could override the settings for a
project, cause spurious errors and/or hiding true errors.

Removing this default value allows users freedom to configure
their projects however they like, without the extension injecting
unexpected additional configuration within the IDE context.

Tested manually by opening a project which has a `setup.cfg` and
changing the `follow_imports` value within that file, then checking
the errors reported from `mypy` change accordingly.

Fixes microsoft#89
@karthiknadig karthiknadig self-assigned this Jul 17, 2023
@karthiknadig karthiknadig added the bug Issue identified by VS Code Team member as probable bug label Jul 17, 2023
@karthiknadig karthiknadig merged commit 1c6c711 into microsoft:main Jul 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Issue identified by VS Code Team member as probable bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Should not use --follow-imports=skip

3 participants