Flake8 Rules Follow for helpful Python tips Fork Indentation contains tabs (W191)Indentation has tabs when only spaces are expected. Change all tabs to spaces.Anti-patternNote: → represents a tab.def get_name(self): if self.first_name and self.last_name: → → return self.first_name ...
Runpycodestyle --show-source --show-pep8 test.py Output obtained: test.py:2:1: W191 indentation contains tabs return b ^ On new projects, spaces-only are strongly recommended over tabs. Okay: if True:\n return W191: if True:\n\treturn test.py:2:2: E117 over-indented return b ...