Skip to content

Report only files specified by mypy config #353

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
karthiknadig opened this issue Mar 10, 2025 · 0 comments · Fixed by #352
Closed

Report only files specified by mypy config #353

karthiknadig opened this issue Mar 10, 2025 · 0 comments · Fixed by #352
Assignees
Labels
feature-request Request for new features or functionality triage-needed verification-needed Verification of issue is requested verified Verification succeeded
Milestone

Comments

@karthiknadig
Copy link
Member

karthiknadig commented Mar 10, 2025

Add a setting to check only a subset of files in the workspace folder. The actual list of files is specified in the files mypy configuration.

We omit path argument to mypy, so that it uses files defined in the configuration.

How to manually verify the feature:

  1. Create a project with 2 python files: foo.py and bar.py, each containing typing error.
  2. In the project root create a pyproject.toml with the following contents:
[tool.mypy]
files = ["foo.py"]
  1. In the project configuration, set mypy-type-checker.reportingScope to custom.
  2. Open foo.py, it should have a typing error highlighted
  3. Open bar.py, it should NOT have typing errors highlighted
@karthiknadig karthiknadig added the feature-request Request for new features or functionality label Mar 10, 2025
@karthiknadig karthiknadig added this to the March 2025 milestone Mar 10, 2025
@karthiknadig karthiknadig self-assigned this Mar 10, 2025
@karthiknadig karthiknadig added the verification-needed Verification of issue is requested label Mar 25, 2025
@roblourens roblourens added the verified Verification succeeded label Mar 25, 2025
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 triage-needed verification-needed Verification of issue is requested verified Verification succeeded
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants