[Django]-Excluding directory

6đź‘Ť

âś…

Pyflakes supports a list of files or directories; no “exclude” option

Here’s an equivalent:

pep8 `find app_name | egrep -v migrations`

pyflakes manpage: http://man.cx/?page=pyflakes&do%5Bgo%5D=go

👤johntellsall

49đź‘Ť

Use flake8 tool instead – it is a wrapper around pyflakes, pep8 and mccabe.

Besides other features, it has an --exclude option:

--exclude=patterns    exclude files or directories which match these comma
                      separated patterns (default:
                      .svn,CVS,.bzr,.hg,.git,__pycache__)
👤alecxe

Leave a comment