From the course: Using Rust with Python

Unlock this course with a free trial

Join today to access over 23,200 courses taught by industry experts.

Using the Rust Ruff linter

Using the Rust Ruff linter - Rust Tutorial

From the course: Using Rust with Python

Using the Rust Ruff linter

- [Instructor] Ruff is an extremely fast Python linter written in Rust. And it shows how you can write very performant tools in the Rust language for Python. And here's a example here that this 0.29 second compared to a 60 second for Pylint really is so substantial that it's hard to make the case for why you would use a slower linter. And it also has advanced features like caching, et cetera. Now how do we actually play around with this? Well, an easy way to start with this is to go to the Playground. So let's go ahead and select this link. And if you go to this link here, what's nice is it shows you that right here I've got a error and I can actually interact with the linter. So it says remove assignment to unused variables. So let's go ahead and change this. And we could even say, for example, print x to fix it. There we go. And we don't need this semicolon as well. But the main idea here is that you can actually get real time feedback, because of the speed of formatter as well as…

Contents