yapf should error out and list targets which are not found
Open
- Dominant language
- Python
- Stars
- 14k
- Forks
- 904
- PR merge metrics
- No merged PRs in 30d
Description
$ yapf 404.py
yapf: Input filenames did not match any python files # good!
$ yapf -i exists.py 404.py
exit code == 0 # bad :(
expected:
$ yapf -i exists.py 404.py
stderr>>"yapf: Input argument did not match any python files: 404.py"
exit code == 3
Contributor guide
Research direction
Start by reproducing the two yapf command examples from the issue and trace the CLI input-validation path for mixed existing and missing filenames. Done means the command reports each unmatched target on stderr and exits with status 3, while the all-missing case continues to report that no Python files matched.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli, tooling
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100