Sample code:
x = 10
y = 5;
print( 'test' )
Expected PycodestyleBear output:
bad.py
[ 2] y·=·5;
**** PycodestyleBear (E703) [Section: cli | Severity: NORMAL] ****
! ! E703 statement ends with a semicolon
[ ] *0. Do (N)othing
[ ] 1. (O)pen file
[ ] 2. Add (I)gnore comment
[ ] Enter number (Ctrl-D to exit):
bad.py
[ 5] print(·'test'·)·
**** PycodestyleBear (E201) [Section: cli | Severity: NORMAL] ****
! ! E201 whitespace after '('
[ ] *0. Do (N)othing
[ ] 1. (O)pen file
[ ] 2. Add (I)gnore comment
[ ] Enter number (Ctrl-D to exit):
bad.py
[ 5] print(·'test'·)·
**** PycodestyleBear (E202) [Section: cli | Severity: NORMAL] ****
! ! E202 whitespace before ')'
[ ] *0. Do (N)othing
[ ] 1. (O)pen file
[ ] 2. Add (I)gnore comment
[ ] Enter number (Ctrl-D to exit):
bad.py
[ 5] print(·'test'·)·
**** PycodestyleBear (W291) [Section: cli | Severity: NORMAL] ****
! ! W291 trailing whitespace
[ ] *0. Do (N)othing
[ ] 1. (O)pen file
[ ] 2. Add (I)gnore comment
[ ] Enter number (Ctrl-D to exit):
~ Program exited
Actual output:
bad.py
[ 2] y·=·5;
**** PycodestyleBear (E703) [Section: cli | Severity: NORMAL] ****
! ! E703 statement ends with a semicolon
[ ] *0. Do (N)othing
[ ] 1. (O)pen file
[ ] 2. Add (I)gnore comment
[ ] Enter number (Ctrl-D to exit):
~ Program exited
Sample code:
Expected PycodestyleBear output:
Actual output: