Python Tutorial: Ruff - A Fast Linter & Formatter to Replace Multiple Tools and Improve Code Quality

Veröffentlicht am: 19 Mai 2025
auf dem Kanal: Corey Schafer
95,744
3.2k

In this Python tutorial, we'll be learning how to use Ruff, a super-fast Python linter and formatter written in Rust. We'll cover how to install Ruff, how to use Ruff from the command line to check and fix your code, and how to configure Ruff both for individual projects and globally. You'll also learn how to integrate Ruff with VSCode to get real-time feedback as you code. Ruff is growing rapidly in popularity because it consolidates multiple Python tools like Flake8, Black, isort, and others into a single, faster solution that significantly improves code quality. By the end, you'll be equipped to use Ruff in your own Python projects. Let's get started...

Ruff Documentation - https://docs.astral.sh/ruff/
Ruff Rules - https://docs.astral.sh/ruff/rules/
Pipx - https://pipx.pypa.io/stable/installat...

My Ruff Config - https://bit.ly/ruff-coreyms
My VS Code Settings - https://bit.ly/vscode-coreyms

UV Tutorial -    • Python Tutorial: UV - A Faster, All-in-One...  
Dotfiles Tutorial -    • Automate Your Development Environment Setu...  
Pathlib Tutorial -    • Python Tutorial: Pathlib - The Modern Way ...  

✅ Support My Channel Through Patreon:
  / coreyms  

✅ Become a Channel Member:
   / coreyms  

✅ One-Time Contribution Through PayPal:
https://goo.gl/649HFY

✅ Cryptocurrency Donations:
Bitcoin Wallet - 3MPH8oY2EAgbLVy7RBMinwcBntggi7qeG3
Ethereum Wallet - 0x151649418616068fB46C3598083817101d3bCD33
Litecoin Wallet - MPvEBY5fxGkmPQgocfJbxP6EmTo5UUXMot

✅ Corey's Public Amazon Wishlist
http://a.co/inIyro1

✅ Equipment I Use and Books I Recommend:
https://www.amazon.com/shop/coreyschafer

▶️ You Can Find Me On:
My Website - http://coreyms.com/
My Second Channel -    / coreymschafer  
Facebook -   / coreymschafer  
Twitter -   / coreymschafer  
Instagram -   / coreymschafer  

#Python #Ruff


Auf dieser Seite können Sie das Online-Video Python Tutorial: Ruff - A Fast Linter & Formatter to Replace Multiple Tools and Improve Code Quality mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Corey Schafer 19 Mai 2025 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 95,744 Mal angesehen und es wurde von 3.2 tausend den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!