ci: Ignore sql=>qb rule for test files
This commit is contained in:
parent
a575cff8a7
commit
4a5bb2873d
1 changed files with 3 additions and 0 deletions
|
|
@ -137,6 +137,9 @@ rules:
|
|||
- pattern: frappe.db.sql(...)
|
||||
- pattern: frappe.db.sql_ddl(...)
|
||||
- pattern: frappe.db.sql_list(...)
|
||||
paths:
|
||||
exclude:
|
||||
- "test_*.py"
|
||||
message: |
|
||||
The PR contains a SQL query that may be re-written with frappe.qb (https://frappeframework.com/docs/user/en/api/query-builder) or the Database API (https://frappeframework.com/docs/user/en/api/database)
|
||||
languages: [python]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue