Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
howtos:check_python_code [2014/10/25 14:13] – add pylint.bat for Windows enrico | howtos:check_python_code [2018/08/07 15:51] (current) – add new way of using pylint craynic | ||
---|---|---|---|
Line 4: | Line 4: | ||
- | ===== Using pep8 and pylint ===== | + | ===== Using pycodestyle |
- | The following steps enable you to check your code with Pylint, Pyflakes and Pep8. | + | The following steps enable you to check your code with Pylint, Pyflakes and Pycodestyle (formerly known as pep8). |
Line 18: | Line 18: | ||
#!/bin/sh | #!/bin/sh | ||
- | echo " | + | echo " |
- | pep8 $1 | + | pycodestyle |
echo " | echo " | ||
pyflakes $1 | pyflakes $1 | ||
echo " | echo " | ||
pylint --msg-template=" | pylint --msg-template=" | ||
+ | pylint -f parseable -r n $1 | ||
</ | </ | ||
Line 100: | Line 101: | ||
- | {{tag> | + | {{tag> |