---
source: crates/ruff_linter/src/rules/pycodestyle/mod.rs
---
E266 [*] Too many leading `#` before block comment
  --> E26.py:19:5
   |
17 | def how_it_feel(r):
18 |
19 |     ### This is a variable ###
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
20 |     a = 42
   |
help: Remove leading `#`
   |
18 |
   -     ### This is a variable ###
19 +     # This is a variable ###
20 |     a = 42
   |

E266 [*] Too many leading `#` before block comment
  --> E26.py:22:5
   |
20 |     a = 42
21 |
22 |     ### Of course it is unused
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
23 |     return
24 | #: E265:1:1 E266:2:1
   |
help: Remove leading `#`
   |
21 |
   -     ### Of course it is unused
22 +     # Of course it is unused
23 |     return
   |

E266 [*] Too many leading `#` before block comment
  --> E26.py:26:1
   |
24 | #: E265:1:1 E266:2:1
25 | ##if DEBUG:
26 | ##    logging.error()
   | ^^^^^^^^^^^^^^^^^^^^^
27 | #: W291:1:42
28 | #########################################
   |
help: Remove leading `#`
   |
25 | ##if DEBUG:
   - ##    logging.error()
26 + # logging.error()
27 | #: W291:1:42
   |

E266 [*] Too many leading `#` before block comment
  --> E26.py:69:1
   |
68 | #: E265:5:1
69 | ### Means test is not done yet
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
70 | # E   Means test is giving error (E)
71 | # F   Means test is failing (F)
   |
help: Remove leading `#`
   |
68 | #: E265:5:1
   - ### Means test is not done yet
69 + # Means test is not done yet
70 | # E   Means test is giving error (E)
   |

E266 [*] Too many leading `#` before block comment
  --> E26.py:82:1
   |
80 | # We should strip the space, but preserve the hashes.
81 | #: E266:1:3
82 | ##  Foo
   | ^^^^^^^
83 |
84 | a = 1  ## Foo
   |
help: Remove leading `#`
   |
81 | #: E266:1:3
   - ##  Foo
82 + # Foo
83 |
   |
