[issue21880] IDLE: Ability to run 3rd party code checkers

Saimadhav Heblikar report at bugs.python.org
Sat Jul 5 16:50:57 CEST 2014


Saimadhav Heblikar added the comment:

In v3, there is no subprocess usage.
It imports the checker specific module,does its job and returns the result of processing.


The checker specific files are to be installed from TestPyPI(atleast for now). It has to be installed via pip.
It will be detected automatically in IDLE. There will be a feature to pass additional arguments onto the checker(though not yet implemented in this patch).

This patch also supports the feature to modify the editor buffer.

To test out this patch, kindly install two packages
pip install -i https://testpypi.python.org/pypi IDLEPyflakes IDLEWhitespaceRemover

(I used the reindent.py file in Tools/scripts in IDLEWhitespaceRemover)

Again, this is more a proof of concept patch. I we are to go ahead in this direction, I will be writing it from scratch again and also with tests.

Checker, is actually a misnomer if we do support the "modify buffer" feature.

----------
Added file: http://bugs.python.org/file35868/3rdpartychecker-v3.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21880>
_______________________________________


More information about the Python-bugs-list mailing list