Skip to content

Add dmypy status file setting#347

Merged
karthiknadig merged 2 commits intomicrosoft:mainfrom
ivirabyan:daemon-status-file
Feb 25, 2025
Merged

Add dmypy status file setting#347
karthiknadig merged 2 commits intomicrosoft:mainfrom
ivirabyan:daemon-status-file

Conversation

@ivirabyan
Copy link
Copy Markdown
Contributor

Closes #332

As suggested in the issue, adding daemonStatusFile setting, which allow setting custom status file, so that dmypy can be reused outside the extension.

Comment on lines +141 to +147
"mypy-type-checker.daemonStatusFile": {
"default": "",
"markdownDescription": "%settings.daemonStatusFile.description%",
"scope": "resource",
"type": "string"
},
Copy link
Copy Markdown
Member

@karthiknadig karthiknadig Feb 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can add "tags": ["experimental"] to mark a setting a experimental in the UI

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a33124c

karthiknadig
karthiknadig previously approved these changes Feb 20, 2025
@vs-code-engineering vs-code-engineering bot added this to the February 2025 milestone Feb 20, 2025
TylerLeonhardt
TylerLeonhardt previously approved these changes Feb 20, 2025
@ivirabyan
Copy link
Copy Markdown
Contributor Author

@microsoft-github-policy-service agree company="Close"

@karthiknadig karthiknadig added the feature-request Request for new features or functionality label Feb 21, 2025
@karthiknadig karthiknadig self-assigned this Feb 21, 2025
@karthiknadig karthiknadig enabled auto-merge (squash) February 21, 2025 19:47
@ivirabyan
Copy link
Copy Markdown
Contributor Author

Is anything else needed for this PR to merged?

@karthiknadig karthiknadig enabled auto-merge (squash) February 25, 2025 15:34
auto-merge was automatically disabled February 25, 2025 15:53

Pull request was closed

@karthiknadig karthiknadig reopened this Feb 25, 2025
@karthiknadig karthiknadig enabled auto-merge (squash) February 25, 2025 15:54
@karthiknadig karthiknadig merged commit befef1d into microsoft:main Feb 25, 2025
@ivirabyan ivirabyan deleted the daemon-status-file branch February 25, 2025 16:42
edvilme added a commit that referenced this pull request Apr 1, 2026
…rns and daemonStatusFile (refs #496, relates to #325, #347)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
edvilme added a commit that referenced this pull request Apr 1, 2026
… relates to #347)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
edvilme added a commit that referenced this pull request Apr 1, 2026
…figurationChanged (refs #496, relates to #347)

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

feature-request Request for new features or functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add dmypy status file setting

4 participants