Functional (and Recent) Python Linter for BBEdit?

383 views
Skip to first unread message

Archie Campbell

unread,
May 23, 2016, 3:59:07 PM5/23/16
to bbe...@googlegroups.com

Hello Gang,


Executive Summary question: any good and recent Pythong linter

scripts/modules for BBEdit?



Optional info, in the event that you've actually used BBFlakes.py:


I tried installing the BBFlakes.py linter script (

https://gist.github.com/coryalder/3317713) to my  ~/Application

Support/BBEdit/Scripts folder, and tweaked it a bit to run with my setup

(BTW, I got the same errors below with the unmodified version of the

script.) But it bombs out with the following:


~/Library/Mobile Documents/com~apple~CloudDocs/Application

Support/BBEdit/Scripts/BBflake8.py:34:

[This line is highlighted]:

stdout, stderr = Popen([pyflakes, doc_file, "--max-line-length=" +

str(line_length)], stdout=PIPE, stderr=PIPE).communicate()


/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py:710:

[This line is highlighted]:

                                errread, errwrite)



/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py:1335:

OSError: [Errno 13] Permission denied

[This line is highlighted]:

                raise child_exception


I can provide more context if it would prove helpful, but I didn't want to

spam the group with a long email, esp. if no one uses BBFlakes.py. At any

rate, any help would be appreciated.



Thanks,



Archie

Rich Siegel

unread,
May 23, 2016, 4:01:45 PM5/23/16
to bbe...@googlegroups.com
On Monday, May 23, 2016, Archie Campbell <arc...@gmail.com> wrote:

>Executive Summary question: any good and recent Pythong linter
>
>scripts/modules for BBEdit?

Flake8 support is built in to 11.6, so if you have flake8
installed, that is probably worth a try.

R.
--
Rich Siegel Bare Bones Software, Inc.
<sie...@barebones.com> <http://www.barebones.com/>

Someday I'll look back on all this and laugh... until they
sedate me.

Archie Campbell

unread,
May 23, 2016, 5:55:44 PM5/23/16
to bbe...@googlegroups.com


Sweet! Thanks, Rich. I will check that out.

Also, I can't believe I wrote "Pythong." That leads to a new question: does anyone know of a good copy editor plugin for my brain?


Thanks,


Archie

--
This is the BBEdit Talk public discussion group. If you have a feature request or would like to report a problem, please email
"sup...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

--- You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bbedit+un...@googlegroups.com.
To post to this group, send email to bbe...@googlegroups.com.

Jeffrey Jones

unread,
May 23, 2016, 7:05:27 PM5/23/16
to bbe...@googlegroups.com
On May 23, 2016, at 5:55 PM, Archie Campbell <arc...@gmail.com> wrote:

That leads to a new question: does anyone know of a good copy editor plugin for my brain?


I have, for a long time, found that one of the best proofreading tools for certain types of errors is Mac OS's built-in text-to-speech function. Hearing a mechanical voice read exactly what I wrote, rather than what I meant, is an effective way of highlighting errors such as missing words, repeated words, wrong words, awkward phrasing, etc.

Just about any OS X application that supports editing text has a "speak the selection" command in the Edit menu and in the contextual menu. In most apps, the keyboard shortcut Opt-Esc also works. (I don't know why, but in BBEdit, Opt-Esc speaks the name of the current document rather than the text selection. I assume I could change that, but I haven't.)

Archie Campbell

unread,
Jun 8, 2016, 2:57:51 PM6/8/16
to bbe...@googlegroups.com


I lost track of time, but I meant to reply to this a while back: Jeffrey's is the most useful answer to a facetious question I've ever read. Thanks, Jeffrey.


Archie


--

Mark Jackson

unread,
Aug 9, 2016, 8:56:40 AM8/9/16
to BBEdit Talk


On Monday, May 23, 2016 at 3:01:45 PM UTC-5, Rich Siegel wrote:

Flake8 support is built in to 11.6, so if you have flake8
installed, that is probably worth a try.

R.
--
Rich Siegel                                 Bare Bones Software, Inc.
<sie...@barebones.com>                      <http://www.barebones.com/>


And this would be done how, exactly? 

Rich Siegel

unread,
Aug 9, 2016, 10:46:06 AM8/9/16
to bbe...@googlegroups.com
On Tuesday, August 9, 2016, Mark Jackson <mark.word...@gmail.com> wrote:

> > Flake8 support is built in to 11.6, so if you have flake8
> > installed, that is probably worth a try.

> >
> And this would be done *how*, exactly?

<https://pypi.python.org/pypi/flake8>

R.
--
Rich Siegel Bare Bones Software, Inc.
<sie...@barebones.com> <http://www.barebones.com/>

Reply all
Reply to author
Forward
0 new messages