python-project-template icon indicating copy to clipboard operation
python-project-template copied to clipboard

Run flake8 without subprocess.

Open seanfisk opened this issue 12 years ago • 1 comments

Flake8 now offers a much-improved interface and it shouldn't be necessary to subprocess for it anymore.

seanfisk avatar Jun 28 '13 16:06 seanfisk

Although the interface has improved, I'm still not sure it's possible to do this without some hackery. They do have a main() function now, but it still doesn't accept arguments. This is possibly because it depends on pep8 and pyflakes and they might not offer great interfaces either.

I would guess the only way to do it without subprocess would be to manually override sys.argv, which has trouble written all over it. Since the current subprocess approach does work, I'm going to put this on the shelf for a while.

seanfisk avatar Jul 18 '13 07:07 seanfisk