Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
howtos:check_python_code [2013/05/20 13:11] – Reformat "Setup Geany" section as a numbered list dregad | howtos:check_python_code [2014/10/25 14:13] – add pylint.bat for Windows enrico | ||
---|---|---|---|
Line 23: | Line 23: | ||
pyflakes $1 | pyflakes $1 | ||
echo " | echo " | ||
- | pylint --output-format=parseable | + | pylint --msg-template=" |
</ | </ | ||
Line 34: | Line 34: | ||
export PYTHONPATH=" | export PYTHONPATH=" | ||
</ | </ | ||
+ | |||
Line 46: | Line 47: | ||
* Set the Command field to < | * Set the Command field to < | ||
check_python_code %f | check_python_code %f | ||
- | </ | + | </ |
- Paste the following text in the "Error regular expression" | - Paste the following text in the "Error regular expression" | ||
([^: | ([^: | ||
Line 52: | Line 53: | ||
+ | ==== Using pylint on Windows ==== | ||
+ | |||
+ | Gösta Ljungdahl mentioned, the following little batch script is useful to use pylint on Windows with Geany: | ||
+ | |||
+ | <code dos pylint.bat> | ||
+ | @echo off | ||
+ | set configfile=c: | ||
+ | echo " | ||
+ | c: | ||
+ | </ | ||
+ | |||
+ | Of course, you need to tweak the paths to the config file and pylint.exe. | ||
+ | The rest should be similar to the explainations above. | ||