my python code produce the following warning message:
(1) \dir\file.py:8:1 W293 blank lines contains whitespace
this comes after commands[0] flake8 XXX
how do you fix the issue?
my python code produce the following warning message:
(1) \dir\file.py:8:1 W293 blank lines contains whitespace
this comes after commands[0] flake8 XXX
how do you fix the issue?
Using the same principal from this question, you can use autopep8 to automatically fix these. The syntax is ...
autopep8 --select=W293 --in-place your_file.py
Simply delete the spaces, tabs, or other white space characters from line 8 in file.py.
Blank lines should not contain any tabs or spaces. So remove the extra spaces as per PEP8. Source - https://ayush-raj-blogs.hashnode.dev/making-clean-pr-for-open-source-contributors-pep-8-style