[CentralOH] Refactoring Pylint Command

jep200404 at columbus.rr.com jep200404 at columbus.rr.com
Wed May 13 22:22:09 CEST 2015


On Sun, 10 May 2015 13:50:21 -0400, jep200404 at columbus.rr.com wrote:

> f='foo.py';while true; do ls -l "$f";pylint "$f" | head -`expr $LINES - 5`;inotify -e modify "$f";done

The grep -v commands below makes things fit on the screen better.
Waiting on pylintrc is handy for when I change the rules.

    f='hoo.py';while true; do date;pylint "$f" | grep -v '^ *$' | grep -v '^[-+=]*$' | head -`expr $LINES - 5`;inotifywait -e modify pylintrc -e modify "$f";done

It's about time to put that honker in a poll-pylint file.

    #!/bin/sh
    
    while true; do
        date
        pylint "$@" |
        grep -v '^ *$' |
        grep -v '^[-+=]*$' |
        head -`expr $LINES - 5`
        inotifywait -e modify pylintrc "$@"
    done

I've not figured out how to use the pylint.vim plugin,
which might moot the above.
http://www.vim.org/scripts/script.php%3Fscript_id=891


More information about the CentralOH mailing list