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
Why is python -m used for flake8, pylint but not mypy #1982
Comments
Hi @vikigenius! Some answers:
Arguably, this rationale matters less now that python 2 is dead, but I'm sure we still have users who depend on it (it was very useful for me a few years back in one class that I was teaching, to quickly switch between 2.7 and 3.6). I would suggest doing the same for ruff, unless it breaks anything. As for mypy, it would be worth unifying it with the rest, unless it breaks something. |
Hi @cpitclaudel thanks for the clarification I have a better understanding of how that works now. So currently the issue is ruff does not seem to work when But if the author is not willing to support it, we could always use ruff the same way we are using mypy currently right? |
Sure, of course. Does ruff exist as a Python library, or just as a standalone program? If the former then I wrote:
… but I didn't realize that ruff was a Rust program. Given that (depending on how it's installed), concerns about virtualenvs and Python versions might not be relevant, and then |
ruff doesn't depend on Python. It's a pure Rust project. So you would not use |
Does #1955 solve this problem? |
I was looking into #1974 and trying to understand how the python checkers were implemented
Looking at the code, I see that flake8 and pylint are called using
python -m
and using the stdin option when enabled.But mypy is called directly as is.
Is there any reasoning for this? I looked through the issue #1055 but I am still not clear on what advantage you might get by using
python -m
over just calling the flake8 executable directly?@cpitclaudel I would appreciate if you can shed some light on this.
The text was updated successfully, but these errors were encountered: