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’.

* Use the output from the above command to specify which files Flake
  should ignore.

The ‘flake8’ help shows we have a ‘--exclude’ option available. So it
remains only to transform the output from ‘determine-files-to-ignore’
into the format expected by ‘flake8 --exclude’.

But please, not a special one-tool-only option.

-- 
 \        “Don't fight forces, use them.” —Richard Buckminster Fuller, |
  `\                                                   _Shelter_, 1932 |
_o__)                                                                  |
Ben Finney

_______________________________________________
code-quality mailing list
code-quality@python.org
https://mail.python.org/mailman/listinfo/code-quality

Reply via email to