Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
petergaultney opened this issue Aug 2, 2024 · 0 comments
Open
Labels
bug mypy got something wrong

Comments

@petergaultney
Copy link

petergaultney commented Aug 2, 2024

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 petergaultney added the bug mypy got something wrong label Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug mypy got something wrong
Projects
None yet
Development

No branches or pull requests

1 participant