Ruff is an extremely fast Python linter and code formatter that can help you improve your code quality and maintainability. This tutorial explained how to get started with Ruff, showcased its key features, and demonstrated how powerful it can be.
In this video course, you learned how to:
- Install Ruff
- Check your Python code for errors
- Automatically fix your linting errors
- Use Ruff to format your code
- Add optional configurations to supercharge your linting
Resources linked in this lesson:
Ed Schneider on Oct. 1, 2025
Linters like ruff are essentially style dependent. Whether something should be considered as a problem is highly subjective. Ruff can check for many conditions which it does not report as an error. That depends on how you set it up. Ruff defaults only to a subset of what it can check for. What conditions it checks for, or ignore, can be set with pyproject.toml. You can also override whether a statement is considered an error by using in line comments such as # noqa and specifying what test to ignore. I would have liked to have seen these topics addressed.