You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Those functions are sqlalchemy counterparts of commonly used sql functions. Typical uses include using booleans in positional arguments as default values. So I suggest to add them to the exclusion list of boolean positional arguments rule.
Just like it was done for is_ and is_not before: #6307
> ruff check test.py
test.py:9:42: FBT003 Boolean positional value in function call
Found 1 error.
The text was updated successfully, but these errors were encountered:
balodja
changed the title
Add coalesce/ifnull/isnull/nvl functions to the exceptions of FBT003
Add coalesce/ifnull/isnull/nvl functions to the exceptions of FBT003 (boolean positional args)
Oct 9, 2023
balodja
changed the title
Add coalesce/ifnull/isnull/nvl functions to the exceptions of FBT003 (boolean positional args)
Add coalesce/ifnull/isnull/nvl functions to the exclusion list of FBT003 (boolean positional args)
Oct 9, 2023
Those functions are sqlalchemy counterparts of commonly used sql functions. Typical uses include using booleans in positional arguments as default values. So I suggest to add them to the exclusion list of boolean positional arguments rule.
Just like it was done for is_ and is_not before: #6307
Example:
Output:
The text was updated successfully, but these errors were encountered: