Can't specify single dir to run mypy
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 20.6k
- Forks
- 3.3k
- PR merge metrics
- PR metrics pending
Description
Bug Report
I have a folder on my project with some python files, when I try to specify mypy to run against it, it returns the message:
There are no .py[i] files in directory 'freshbuilds/slack_integration'
And yes I have files in there:
❯ ls -a freshbuilds/slack_integration | grep .py
drwxr-xr-x - rodrigo.rezino 29 Jun 16:54 .mypy_cache
.rw-r--r-- 0 rodrigo.rezino 29 Jun 14:27 init.py
drwxr-xr-x - rodrigo.rezino 29 Jun 16:43 pycache
.rw-r--r-- 1.1k rodrigo.rezino 29 Jun 15:40 azure_pipelines_info.py
.rw-r--r-- 1.1k rodrigo.rezino 29 Jun 15:06 github_info.py
.rw-r--r-- 13k rodrigo.rezino 29 Jun 16:43 slack_azure.py
.rw-r--r-- 518 rodrigo.rezino 29 Jun 14:53 slack_constants.py
.rw-r--r-- 514 rodrigo.rezino 29 Jun 16:43 slack_content.py
Don't know what is happening, it works if I point to a single file.
Mypy Version 1.4.1 (compiled: yes)
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 report with mypy 1.4.1 by passing a directory containing the listed .py files, then compare it with passing one file. The issue is resolved when mypy accepts the directory and processes its Python files without reporting that none exist.
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
- 30/100