-
Notifications
You must be signed in to change notification settings - Fork 15
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
[dev] Lint with ruff #27
Comments
I'm using quite a few flake8 plugins in this repo, such as these. I'm not sure ruff has implemented all of these. pydoclint is a small repo (and I don't think it will become very big eventually), so at least right now, I'm not seeing the linter running time as a bottleneck or an inconvenience. |
I'll check.
I agree. |
Many are but not all. |
@jsh9 Can we have an updated list of rules that are already covered by ruff? I would find very useful to only run ruff and avoid ruinning flake8 with pydoclint or pydoclint separately, especialy as separated it lacks a huge number of important features, like inline noqa. There are other implications, like lack of a vscode extension, which makes it even more painful. Out of curiosity, have you considered trying to implement the missing ones in ruff itself, so we would not need pydoclint anymore? -- I know that writing rust code is not as easy or fun as python, but on the long run, it would translate to far less maintenance, as ruff is under heavy development. PS. I asked about a plugin system for ruff at astral-sh/ruff#283 (comment) but I doubt that will happen too soon if ever. Probably would be much easier reimplement the rules. |
Hi @ssbarnea , My goal is to make pydoclint as good as I can, and integrating with Ruff is out of the scope of this project. I believe it is Ruff's authors' responsibility (rather than ours) to find good Python linters and translate them into Rust. Additionally many authors of these linters (such as myself) don't code in Rust, so we can't really contribute to Ruff. And honestly, I doubt that Ruff will be sustainable in the long run. Here are some of my reasons:
|
I would like to configure ruff as a linter for the our python code. It is very fast and supports all rules known from flake8, pylint,...
The text was updated successfully, but these errors were encountered: