When cwd config option is ${nearestConfig}, look for all of mypy.ini, .mypy.ini, pyproject.toml, setup.cfg#357
Merged
karthiknadig merged 4 commits intomicrosoft:mainfrom Apr 17, 2025
Merged
Conversation
… .mypy.ini, pyproject.toml, setup.cfg - Related: microsoft/vscode-mypy#356
Contributor
Author
|
@microsoft-github-policy-service agree |
karthiknadig
previously approved these changes
Apr 3, 2025
eleanorjboyd
previously approved these changes
Apr 3, 2025
Member
|
looks good there is just an issue with linting: https://github.com/microsoft/vscode-mypy/actions/runs/14002940023/job/39940477920?pr=357. |
Contributor
Author
|
@eleanorjboyd My changes have nothing to do with the linting error shown, but I can fix it by deleting the global var declaration on the offending line vscode-mypy/bundled/tool/lsp_server.py Line 205 in 78868dc |
auto-merge was automatically disabled
April 4, 2025 03:18
Head branch was pushed to by a user without write access
14cfebf
karthiknadig
approved these changes
Apr 4, 2025
rzhao271
approved these changes
Apr 4, 2025
auto-merge was automatically disabled
April 17, 2025 02:03
Pull request was closed
Contributor
|
Closes #437 |
This was referenced Mar 31, 2026
edvilme
added a commit
that referenced
this pull request
Apr 7, 2026
* test: add coverage for nearestConfig with .mypy.ini, pyproject.toml, setup.cfg (refs #496, relates to #357) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * test: add coverage for global settings defaults including ignorePatterns and daemonStatusFile (refs #496, relates to #325, #347) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * test: add coverage for daemonStatusFile in _get_dmypy_args (refs #496, relates to #347) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * test: add coverage for daemonStatusFile in TS settings and checkIfConfigurationChanged (refs #496, relates to #347) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * test: add coverage for PythonEnvironments.api() interpreter resolution (refs #496, relates to #467) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * style: fix prettier formatting in settings.unit.test.ts * fix: address review comments - add missing mock attrs, try/finally cleanup - Add normalize_path to mock_lsp_utils in test_global_defaults.py - Add fallback guard ensuring normalize_path is set even if lsp_utils was mocked by another test file first - Wrap dmypy status file test bodies in try/finally so _clear_dmypy_cache() runs even when assertions fail Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * fix: address review comments — unused imports, assertion, const - Remove unused imports (PythonEnvironmentApi, commands, Disposable, Event) - Add explicit envsApiStub.calledOnce assertion in fallback test - Change let workspace1 to const (2 occurrences) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related: microsoft/vscode-mypy#356