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
- [Django]-Get user information in django templates
- [Django]-How to use the request in a ModelForm in Django
- [Django]-How do you use get_context_data with TemplateView in Django
Source:stackexchange.com