fix: exclude some query builder lines from ruff rules

`== None` and `== True` are intentional here

(cherry picked from commit ac69513f60)
(cherry picked from commit 41d7c03cbb)
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
This commit is contained in:
Akhil Narang
2024-03-27 21:49:44 +05:30
parent b087fb3d54
commit 2425119b5e
2 changed files with 5 additions and 5 deletions

View File

@@ -22,7 +22,7 @@ def execute():
.where(
(si.creation.gte(creation_date))
& (si.docstatus == 1)
& (si.is_return is True)
& (si.is_return == True) # noqa: E712
& (si.return_against.notnull())
)
.run()
@@ -51,7 +51,7 @@ def execute():
.where(
(pi.creation.gte(creation_date))
& (pi.docstatus == 1)
& (pi.is_return is True)
& (pi.is_return == True) # noqa: E712
& (pi.return_against.notnull())
)
.run()