Bug 373457 - pycodestyle invocation slow; should be kept running
Summary: pycodestyle invocation slow; should be kept running
Status: RESOLVED FIXED
Alias: None
Product: kdev-python
Classification: Developer tools
Component: general (show other bugs)
Version: git master
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Sven Brauch
URL: https://phabricator.kde.org/D3807
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-09 10:33 UTC by Sven Brauch
Modified: 2016-12-29 16:29 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.1.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Brauch 2016-12-09 10:33:35 UTC
Starting up the pycodestyle syntax checker takes about one second, which is too much to launch it on each parse job. We should instead have some "server" script running, which processes data from stdin and writes checker errors to stdout. Example code on how to interface with pycodestyle:

>>> import pycodestyle
>>> c = pycodestyle.Checker(lines=["a=3"])
>>> c.check_all()
stdin:1:2: E225 missing whitespace around operator
stdin:1:4: W292 no newline at end of file
2
Comment 1 Sven Brauch 2016-12-27 17:20:07 UTC
Should be fixed in master / 5.1