I don't know flake8 well, but one tactic is to wrap the flake8 call in a "lint"
script, and do any extra checks you want in there, in Bash. eg looping over
files and calling "wc -l" in this case.
Apologies this is not what you asked for.
On Sat, May 4, 2019, at 19:47, oscar anomnihe wrote:
> Go
Flake8 allows you to create a plugin that accepts the parameter
"lines" which will provide you with a list of strings representing all
of the lines in the file (including empty/blank lines). You can then
call "len(lines)" and return an violation if that exceeds 500.
On Sat, May 4, 2019 at 6:47 PM
Thanks Ian,
Is there a short sample (one or two lines) code that could make your
explanation clearer to me. I will highly appreciate that.
Regard
Oscar
Sent from my iPhone
> On 5 May 2019, at 4:54 PM, Ian Stapleton Cordasco
> wrote:
>
> Flake8 allows you to create a plugin that accepts the
Unfortunately, there's nothing that short that serves as an example.
There is some documentation around building a plugin, though:
http://flake8.pycqa.org/en/latest/plugin-development/index.html
On Sun, May 5, 2019 at 11:09 AM oscar anomnihe wrote:
>
> Thanks Ian,
>
> Is there a short sample (one
Thanks so much.
Sent from my iPhone
> On 5 May 2019, at 5:20 PM, Ian Stapleton Cordasco
> wrote:
>
> Unfortunately, there's nothing that short that serves as an example.
> There is some documentation around building a plugin, though:
> http://flake8.pycqa.org/en/latest/plugin-development/index