- Grabbing the Goods
First off the bat we need to grab all the packages we need. pylint depends on two other packages from Logilabs, who write pylint for us. We need to grab the latest releases of pylint, logilab-astng, and logilab-common.
- Extract all of these somewhere to install from.
- Open a command shell and move to each of the directories, executing the install command in each:
python setup.py install
- Feel free to remove the extracted files now that everything has been installed. You can use pylint now. On to Komodo integration.
- In Komodo, open the toolbox from the View menu with View->Tabs->Toolbox. Now, click your "Add Item to Toolbox" button in the new tab, and select "New Command..." to add a command to Komodo that will analyze your current file with pylint.
- For the command enter the line 'python -c "import sys,pylint.lint;pylint.lint.Run(sys.argv[1:])" "%F"'. This will import pylint, handle spaces in Windows filenames, and run the processing on your file.
- Check the "Parse output with:" box and enter this regular expression to parse the lines from pylint, '.*?:(?P<line>\d+):\s*(?P<content>.*?)$
'. Also, check the "Show parsed output as list" box.
- Optionally, bind a key shortcut from the Key Binding tab. I use ctrl+alt+L.
Tuesday, May 08, 2007
A More Complete PyLint on Windows Walkthrough
Others have posted about getting pylint installed on Windows, but I always fell short getting the steps to lead to the destination. Some tinkering and I got it right. This also includes the instructions to get it integrated into Komodo.
I write here about programming, how to program better, things I think are neat and are related to programming. I might write other things at my personal website.
- ► 2014 (52)
- ► 2012 (19)
- ► 2011 (19)
- ► 2010 (32)
- ► 2008 (28)
- Sick Kid
- Promoting Feeds by Including Treats
- Do you fit my Visitor Grid?
- Moving to FeedBurner
- DLR gains Lisp?
- Hiatus Week Over
- Wanna-Be Chef: Cheap Cheese Bean Casserole
- Python Coders Twitter Channel
- EXIF Writing in Python - Take 2
- EXIF Writing in Python
- Green Web
- Undefined Python
- News Sites No Link
- Announcement For Blogger.com Users: Make Those Pro...
- Microsoft Lovers versus Open Source Lovers versus ...
- What's Your Web 2.0?
- The Point of No Back Button
- Blogging for Dollars
- A More Complete PyLint on Windows Walkthrough
- Two Hex and a User
- Keeping With The Current
- (Insert Your Encryption Key Here)
- iGoogle versus Netvibes (versus Yahoo! versus MSN ...
- Feed Readers Should Marry Music Players
- Dear God
- De Vinci's Decendants Must Love Residual Copyright...
- Tip: Social Bookmarks, Things to Read, Feed Reader...
- Power Pads, Cut My Loose Ends!
- A Drop of Thought
- On-Demand, TV Subscription Tiers, and Outdated Cen...
- ▼ May (31)