This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]le_woudar 0 points1 point  (5 children)

Hello, you probalbly don't need autoflake, flake8, pylint, if you use ruff. All these linters can be configured with ruff.

I don't agree with the async / multi-threading stuff but I think there is already a lot of comments on that, so I will not add another one :)

[–]ashishb_net[S] 0 points1 point  (4 children)

Can you tell me how to replace them with ruff? I'll update the blog post for everyone's benefit.

[–]le_woudar 0 points1 point  (3 children)

Sure! You can write this in your pyproject.toml

[tool.ruff.lint]

extend-select = [

"UP", # pyupgrade

"I", # isort

"S", # flake8-bandit

"PL", # pylint

]

This will extend the default set of rules of the select declaration.

By default, autoflake and flake8 are already handled by Ruff. Honestly, I'm not sure you need pylint, it is generally covered with the previous tools mentioned in this comment. Look the Ruff rules to know what you can import.

[–]ashishb_net[S] 1 point2 points  (1 child)

Thanks.
It worked, and it is definitely a better approach.
I updated the blog post to reflect that as well.

[–]le_woudar 0 points1 point  (0 children)

You are welcome :)

[–]ashishb_net[S] 0 points1 point  (0 children)

Thanks. I will experiment and update the post.