PyLint bad-whitespace Configuration

FluxIX picture FluxIX · Feb 13, 2017 · Viewed 9.1k times · Source

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.

Answer

ethanchewy picture ethanchewy · Mar 8, 2017

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