Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I exclude South migrations from Pylint?

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

like image 740
Mridang Agarwalla Avatar asked Oct 24 '11 18:10

Mridang Agarwalla


1 Answers

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
like image 97
Mridang Agarwalla Avatar answered Sep 27 '22 16:09

Mridang Agarwalla