mypy icon indicating copy to clipboard operation
mypy copied to clipboard

dmypy: error: unrecognized arguments: --config-file pyproject.toml

Open petergaultney opened this issue 1 year ago • 0 comments

Bug Report

To Reproduce

Run the dmypy daemon as dmypy run -- . --config-file pyproject.toml

Expected Behavior

dmypy should respect the part of its own documentation that states "You can use almost arbitrary mypy flags after --"

Actual Behavior

This fails with

usage: dmypy [-h] [--status-file STATUS_FILE] [-V] {start,restart,status,stop,kill,check,run,recheck,suggest,inspect,hang,daemon,help} ...
dmypy: error: unrecognized arguments: --config-file pyproject.toml

And if I remove that part and run only dmypy run -- ., it runs fine, except it ignores the mypy config in that file. Your Environment

  • Mypy version used: 1.10.0, 1.10.1, 1.11.0 (i tested all three)
  • Mypy command-line flags: (as above)
  • Mypy configuration options from mypy.ini (and other config files): N/A, see above
  • Python version used: 3.8, 3.10

petergaultney avatar Aug 02 '24 15:08 petergaultney