Skip to content

Report only files specified by mypy config #353

@karthiknadig

Description

@karthiknadig

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

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions