---
source: crates/ruff/src/rules/pycodestyle/mod.rs
---
E25.py:2:12: E251 Unexpected spaces around keyword / parameter equals
  |
2 | #: E251 E251
3 | def foo(bar = False):
  |             E251
4 |     '''Test function with an error in declaration'''
5 |     pass
  |

E25.py:2:14: E251 Unexpected spaces around keyword / parameter equals
  |
2 | #: E251 E251
3 | def foo(bar = False):
  |               E251
4 |     '''Test function with an error in declaration'''
5 |     pass
  |

E25.py:6:9: E251 Unexpected spaces around keyword / parameter equals
   |
 6 |     pass
 7 | #: E251
 8 | foo(bar= True)
   |          E251
 9 | #: E251
10 | foo(bar =True)
   |

E25.py:8:8: E251 Unexpected spaces around keyword / parameter equals
   |
 8 | foo(bar= True)
 9 | #: E251
10 | foo(bar =True)
   |         E251
11 | #: E251 E251
12 | foo(bar = True)
   |

E25.py:10:8: E251 Unexpected spaces around keyword / parameter equals
   |
10 | foo(bar =True)
11 | #: E251 E251
12 | foo(bar = True)
   |         E251
13 | #: E251
14 | y = bar(root= "sdasd")
   |

E25.py:10:10: E251 Unexpected spaces around keyword / parameter equals
   |
10 | foo(bar =True)
11 | #: E251 E251
12 | foo(bar = True)
   |           E251
13 | #: E251
14 | y = bar(root= "sdasd")
   |

E25.py:12:14: E251 Unexpected spaces around keyword / parameter equals
   |
12 | foo(bar = True)
13 | #: E251
14 | y = bar(root= "sdasd")
   |               E251
15 | #: E251:2:29
16 | parser.add_argument('--long-option',
   |

E25.py:15:29: E251 Unexpected spaces around keyword / parameter equals
   |
15 | #: E251:2:29
16 | parser.add_argument('--long-option',
17 |                     default=
   |                              E251
18 |                     "/rather/long/filesystem/path/here/blah/blah/blah")
19 | #: E251:1:45
   |

E25.py:18:45: E251 Unexpected spaces around keyword / parameter equals
   |
18 |                     "/rather/long/filesystem/path/here/blah/blah/blah")
19 | #: E251:1:45
20 | parser.add_argument('--long-option', default
   |                                              E251
21 |                     ="/rather/long/filesystem/path/here/blah/blah/blah")
22 | #: E251:3:8 E251:3:10
   |

E25.py:23:8: E251 Unexpected spaces around keyword / parameter equals
   |
23 | foo(True,
24 |     baz=(1, 2),
25 |     biz = 'foo'
   |         E251
26 |     )
27 | #: Okay
   |

E25.py:23:10: E251 Unexpected spaces around keyword / parameter equals
   |
23 | foo(True,
24 |     baz=(1, 2),
25 |     biz = 'foo'
   |           E251
26 |     )
27 | #: Okay
   |


