(๐) false unused configs warning when using `no_incremental`
Open
Nobody has claimed this yet.
bug
- Dominant language
- Python
- Stars
- 20.6k
- Forks
- 3.3k
- PR merge metrics
- PR metrics pending
Description
[tool.mypy]
warn_unused_configs = true
[[tool.mypy.overrides]]
module = ['b.*']
๐ mypy a
Success: no issues found in 1 source file
๐ mypy a --no-incremental
Warning: unused section(s) in pyproject.toml: module = ['b.*']
Success: no issues found in 1 source file
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up โ it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the warning using the pyproject.toml configuration and the two mypy commands shown. Start by tracing how no-incremental mode records and checks unused override sections, then verify that the b.* section is not falsely reported when mypy a succeeds. Done means the behavior is covered by a regression test and the warning is consistent between incremental and no-incremental runs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100