Search code examples
pythonpylintpylintrc

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.


Solution

  • 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