I use a pylintrc
file to disable some pylint warnings project-wide, but I'd like to disable some more messages just for files named SConscript
.
Currently, I have a # pylint: disable=...
in the beginning of each SConscript
file, but it's a pain to maintain.
Is there a way to tell pylint to have extra suppressions based on the processed filename? (or regex, or whatever)
Solution to setup in your
pylintrc
config file this setting:With this setting pylint scan will ignore the filename/directory/packagename patterns you setup here.