Skip to content

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
tdscheper:main
Apr 17, 2025
Merged

When cwd config option is ${nearestConfig}, look for all of mypy.ini, .mypy.ini, pyproject.toml, setup.cfg#357
karthiknadig merged 4 commits intomicrosoft:mainfrom
tdscheper:main

Conversation

@tdscheper
Copy link
Copy Markdown
Contributor

Related: microsoft/vscode-mypy#356

… .mypy.ini, pyproject.toml, setup.cfg

- Related: microsoft/vscode-mypy#356
@tdscheper
Copy link
Copy Markdown
Contributor Author

@microsoft-github-policy-service agree

@karthiknadig karthiknadig self-assigned this Apr 3, 2025
karthiknadig
karthiknadig previously approved these changes Apr 3, 2025
@karthiknadig karthiknadig added the bug Issue identified by VS Code Team member as probable bug label Apr 3, 2025
@karthiknadig karthiknadig enabled auto-merge (squash) April 3, 2025 18:23
@vs-code-engineering vs-code-engineering bot added this to the April 2025 milestone Apr 3, 2025
eleanorjboyd
eleanorjboyd previously approved these changes Apr 3, 2025
@eleanorjboyd
Copy link
Copy Markdown
Member

@tdscheper
Copy link
Copy Markdown
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

global _reported_file_paths

auto-merge was automatically disabled April 4, 2025 03:18

Head branch was pushed to by a user without write access

@tdscheper tdscheper dismissed stale reviews from eleanorjboyd and karthiknadig via 14cfebf April 4, 2025 03:18
@karthiknadig karthiknadig enabled auto-merge (squash) April 4, 2025 22:32
auto-merge was automatically disabled April 17, 2025 02:03

Pull request was closed

@karthiknadig karthiknadig reopened this Apr 17, 2025
@karthiknadig karthiknadig enabled auto-merge (squash) April 17, 2025 02:04
@karthiknadig karthiknadig removed the request for review from eleanorjboyd April 17, 2025 02:04
@karthiknadig karthiknadig merged commit 8cb6bca into microsoft:main Apr 17, 2025
39 checks passed
@edvilme
Copy link
Copy Markdown
Contributor

edvilme commented Feb 24, 2026

Closes #437

edvilme added a commit that referenced this pull request Apr 1, 2026
…setup.cfg (refs #496, relates to #357)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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>
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.

5 participants