Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to fix the "W293 blank line contains whitespace"

Tags:

python

flake8

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?

like image 924
PChao Avatar asked Jan 26 '15 22:01

PChao


1 Answers

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
like image 176
Mister Brainley Avatar answered Oct 01 '22 23:10

Mister Brainley