You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are using Flake8 and Pylint and Black for linting and formatting. Many projects including flask have switched to ruff and are also using pyright (for static type checking).
We currently don't have any tool for static type checking and I think that could be worth adding.
Ruff is supposed to be a drop in replacement for Black and Flake8 (I'm not sure about Pylint) but apparently much faster. I'm not sure its worth switching to Ruff, perhaps any of you have some experience with it and can give us your opinion.
@oldfielj-ansto recently added both tools to the mxcube-video-streamer project which was very welcome :),
The text was updated successfully, but these errors were encountered:
I agree with migrating to ruff for linting (or ruff+black).
I agree with adding type checks to our toolchain. I have never used pyright, I have used mypy quite a lot. Whatever the tool for type checks, I feel like there might be a lot of things to fix for the checks to pass.
But for the record: I am still a bit wary of ruff, because the tool is very new compared to the tools it is meant to replace that have matured for many years. I can't deny that ruff got very popular very quickly so that must be for a reason. And of course, if it simplifes our toolchain, then it is a good thing.
We are using
Flake8
andPylint
andBlack
for linting and formatting. Many projects includingflask
have switched toruff
and are also usingpyright
(for static type checking).We currently don't have any tool for static type checking and I think that could be worth adding.
Ruff is supposed to be a drop in replacement for
Black
andFlake8
(I'm not sure aboutPylint
) but apparently much faster. I'm not sure its worth switching to Ruff, perhaps any of you have some experience with it and can give us your opinion.@oldfielj-ansto recently added both tools to the
mxcube-video-streamer
project which was very welcome :),The text was updated successfully, but these errors were encountered: