Run Ruff on Your Python Code: ruff check and ruff rule Explained
Download your free Python Cheat Sheet here: https://realpython.com/cheatsheet Free Python Skill Test with instant level + learning plan: https://realpython.com/skill-test Want to learn faster? Become a Python Expert with unlimited access to 5,000+ tutorials, videos, and exercises: https://realpython.com/start This lesson focuses on checking your code for linting errors and understanding Ruff’s output so you know exactly what each rule means. • Use the sample file one_ring.py from the course materials • Run ruff check on the current directory and on a single file • See how Ruff reports linting errors with codes, messages, file names, and line numbers • Use ruff rule with a specific error code to get detailed, Markdown-style documentation • List all available Ruff rules with ruff rule --all • Pipe the output of ruff rule --all into less so you can scroll through all rules • Access Ruff’s documentation even when the internet is down Watch the full course: https://realpython.com/courses/modern-python-linting-ruff/ 🐍 Become a Python expert with real-world tutorials, on-demand courses, interactive quizzes, and 24/7 access to a community of experts at https://realpython.com ▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰ 🐍 Start Here → https://realpython.com/start 🗺️ Guided Learning Paths → https://realpython.com/learning-paths 🎧 Real Python Podcast → https://realpython.com/podcast 📚 Python Books → https://realpython.com/books 📖 Python Reference → https://realpython.com/ref 🧑💻 Quizzes & Exercises → https://realpython.com/quizzes 🎓 Live Courses: https://realpython.com/live ⭐️ Reviews & Learner Stories: https://realpython.com/learner-stories ▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰
Download
0 formatsNo download links available.