Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PyLint bad-whitespace Configuration

Is there a way to configure the checks for the bad-whitespace checks in PyLint? I can currently disable checking but I would much rather enforce a whitespace convention instead of disabling it.

like image 316
FluxIX Avatar asked Feb 13 '17 06:02

FluxIX


1 Answers

There are two options you could use:

  1. Globally disable the bad-whitespace warning:

    pylint --disable=C0326
    
  2. Use a Pylint configuration file:

    pylint --rcfile=/path/to/config.file
    

    This is what you would put in the config file to disable the bad-whitespace warning:

    disable=C0326
    
like image 99
ethanchewy Avatar answered Sep 21 '22 00:09

ethanchewy