---
source: crates/ruff_linter/src/rules/pycodestyle/mod.rs
snapshot_kind: text
---
W29.py:4:6: W291 [*] Trailing whitespace
  |
2 | # 情
3 | #: W291:1:6
4 | print 
  |      ^ W291
5 | #: W293:2:1
6 | class Foo(object):
  |
  = help: Remove trailing whitespace

ℹ Safe fix
1 1 | #: Okay
2 2 | # 情
3 3 | #: W291:1:6
4   |-print 
  4 |+print
5 5 | #: W293:2:1
6 6 | class Foo(object):
7 7 |     

W29.py:11:35: W291 [*] Trailing whitespace
   |
 9 | #: W291:2:35
10 | '''multiline
11 | string with trailing whitespace'''   
   |                                   ^^^ W291
12 | #: W291 W292 noeol
13 | x = 1   
   |
   = help: Remove trailing whitespace

ℹ Safe fix
8  8  |     bang = 12
9  9  | #: W291:2:35
10 10 | '''multiline
11    |-string with trailing whitespace'''   
   11 |+string with trailing whitespace'''
12 12 | #: W291 W292 noeol
13 13 | x = 1   
14 14 | #: W191 W292 noeol

W29.py:13:6: W291 [*] Trailing whitespace
   |
11 | string with trailing whitespace'''   
12 | #: W291 W292 noeol
13 | x = 1   
   |      ^^^ W291
14 | #: W191 W292 noeol
15 | if False:
   |
   = help: Remove trailing whitespace

ℹ Safe fix
10 10 | '''multiline
11 11 | string with trailing whitespace'''   
12 12 | #: W291 W292 noeol
13    |-x = 1   
   13 |+x = 1
14 14 | #: W191 W292 noeol
15 15 | if False:
16 16 | 	pass  # indented with tabs
