Yesterday I uploaded a new version of leo/core/pylint-leo-rc-ref.txt.

*Notes*:

1. Devs should copy this file to their ~/.leo directory and *rename it* to 
pylint-leo-rc.txt.

This is the dev's *local config file*. Devs are free to ignore pylint 
checkers such as 'import-error' in their local config file.

2. Devs can run pylint *externally *using pylint-leo.py.  For example, here 
is my ll.cmd file:

python -m pylint-leo %*

I use ll.cmd rather than pylint.cmd to save typing, and to avoid any 
possibly of a clash with a pylint script in python/scripts.

Use `ll -h` to see a list of options. `ll -a` runs pylint on all of Leo's 
files.

3. *Within Leo,* devs can use Leo's pylint command. The advantage of doing 
so is that pylint errors create clickable links. The disadvantage is that 
Leo almost (but not quite) hangs while running pylint.

4. I typically *disable* newly-added pylint checkers unless they add 
significant checks. Recently, most have not.  "consider-this", 
"consider-that" are mostly make work.

5. I recently *enabled* several format checks which complain about bad 
indentation, etc.

6. I now routinely use Leo's 'beautify-files' command to regularize 
whitespace.

All questions and comments welcome.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/070becb3-a89d-4009-80ad-70bd6576bb25n%40googlegroups.com.

Reply via email to