Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I change pylint tab width from 4 spaces to 2 spaces?

I have tried pylint --indent-string=" ", but I keep getting the help message. What am I supposed to do to configure pylint.

like image 489
Flair Avatar asked Jan 09 '19 20:01

Flair


1 Answers

According to the docs, " " means 4 spaces.

You need to use single quotes: pylint --indent-string=' '

like image 65
KevinG Avatar answered Sep 22 '22 03:09

KevinG