mirror of
https://github.com/astral-sh/ruff.git
synced 2025-07-21 20:15:11 +00:00
Move typos to pre-commit config (#4148)
This commit is contained in:
parent
03144b2fad
commit
f0f4bf2929
6 changed files with 13 additions and 16 deletions
|
@ -93,7 +93,7 @@ def foo2(list_a, list_b):
|
|||
|
||||
def foo3(list_a, list_b):
|
||||
return (
|
||||
# Standlone comment but weirdly placed.
|
||||
# Standalone comment but weirdly placed.
|
||||
User.query.filter(User.foo == "bar")
|
||||
.filter(
|
||||
db.or_(User.field_a.astext.in_(list_a), User.field_b.astext.in_(list_b))
|
||||
|
@ -221,14 +221,14 @@ def foo3(list_a, list_b):
|
|||
|
||||
def foo3(list_a, list_b):
|
||||
- return (
|
||||
- # Standlone comment but weirdly placed.
|
||||
- # Standalone comment but weirdly placed.
|
||||
- User.query.filter(User.foo == "bar")
|
||||
- .filter(
|
||||
- db.or_(User.field_a.astext.in_(list_a), User.field_b.astext.in_(list_b))
|
||||
- )
|
||||
- .filter(User.xyz.is_(None))
|
||||
- )
|
||||
+ return # Standlone comment but weirdly placed.
|
||||
+ return # Standalone comment but weirdly placed.
|
||||
+ User.query.filter(User.foo == "bar").filter(
|
||||
+ db.or_(User.field_a.astext.in_(list_a), User.field_b.astext.in_(list_b))
|
||||
+ ).filter(User.xyz.is_(None))
|
||||
|
@ -327,7 +327,7 @@ def foo2(list_a, list_b):
|
|||
|
||||
|
||||
def foo3(list_a, list_b):
|
||||
return # Standlone comment but weirdly placed.
|
||||
return # Standalone comment but weirdly placed.
|
||||
User.query.filter(User.foo == "bar").filter(
|
||||
db.or_(User.field_a.astext.in_(list_a), User.field_b.astext.in_(list_b))
|
||||
).filter(User.xyz.is_(None))
|
||||
|
@ -423,7 +423,7 @@ def foo2(list_a, list_b):
|
|||
|
||||
def foo3(list_a, list_b):
|
||||
return (
|
||||
# Standlone comment but weirdly placed.
|
||||
# Standalone comment but weirdly placed.
|
||||
User.query.filter(User.foo == "bar")
|
||||
.filter(
|
||||
db.or_(User.field_a.astext.in_(list_a), User.field_b.astext.in_(list_b))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue