
Important: A VS Code Extension That Keeps Your Python Imports Clean
If you've ever spent time manually cleaning up Python imports after a review comment saying "wrong order" or "import the module, not the symbol" , you'll appreciate this. Important is a free, open-source VS Code extension that validates and auto-fixes Python import statements according to the Google Python Style Guide and PEP 8 . It gives you real-time feedback as you type and can fix every issue it raises with a single command. Why another import tool? Ruff and isort are great at sorting imports, but they don't enforce the style rules that teams adopting the Google guide care about — things like importing modules instead of symbols, banning wildcards, or flagging unjustified aliases. Important fills that gap, and its output is designed to be Ruff-compatible so the two tools don't fight each other. What does it do? Here's a quick overview of what Important validates and fixes: Rule Example Auto-Fix No relative imports from .module import x → absolute ✅ No wildcard imports from os.path
Continue reading on Dev.to Python
Opens in a new tab



