On 2015-01-12 23:20, Ben Finney wrote:
> Austin Macdonald <asma...@gmail.com>
> writes:
> 
>> I would like if flake8 could ignore all files that match the
>> .gitignore.
> 
> Rather than making an option specific to one particular tool, I think
> the correct way to do this would be to break it in two:
> 
> * Query $SOME_TOOL for a set of file names. In your case, this would be
>   something like ‘git clean --dry-run -dX’.

I use something like
flake8 $(git ls-files|grep '^scripts\|\.py$'|grep ...)

ls-files seems to have a lot of options, you might not even need grep.
_______________________________________________
code-quality mailing list
code-quality@python.org
https://mail.python.org/mailman/listinfo/code-quality

Reply via email to