[Fixed]-How do I exclude South migrations from Pylint?

23👍

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

2👍

# .pylintrc
ignore-patterns=\d{4}_.*?.py

2👍

The anser here didn’t work for me, the ignore list doesn’t work on directories.
I had to add

ignore-paths=.*/migrations

1👍

In recent pylint versions, disable-msg-cat has been unified with other disable-* options
as a single ‘disable’ option. Since then,

# pylint: disable=I,E,R,F,C

may be added on top of files where you don’t want any messages issued.

Leave a comment