I'm using South for migration in my Django project. When I run Pylint on my project I get a bunch of errors from the migration files. How can I exclude migration files from Pylint?
I'm on a Windows system so I can't use filename exclusions in the Pylint options. I've tried to resort to adding # pylint: disable-msg-cat=WCREFI
to the top of each of my migration files. It seems very kludgy and seems to be the last resort but this documented directive doesn't work and I get the error [E] Unrecognized file option 'disable-msg-cat'
.
Adding the following to the .pylintrc
file did it.
[MASTER]
# Add <file or directory> to the black list. It should be a base name, not a
# path. You may set this option multiple times.
ignore=tests.py, urls.py, migrations
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With