WSC004: Indentation with non-space character¶
This rule enforces the space indentation (whitespaces before the line can be spaces only).
Example¶
Input file: examples/WSC004_tab_indentation.py
class LabelPrinter:
def __prepare_print_cache_dir(self):
os.makedirs(self.__print_cache_dir, exist_ok=True)
Command:
$ wscheck 'examples/WSC004_tab_indentation.py'
In examples/WSC004_tab_indentation.py line 3:
--->--->os.makedirs(self.__print_cache_dir, exist_ok=True)
^-- WSC004: Indentation with non-space character