fix: Skip ruff qa on auto-generated typing blocks
This commit is contained in:
parent
30538e38f6
commit
a3dac79b2e
1 changed files with 6 additions and 2 deletions
|
|
@ -22,8 +22,12 @@ from frappe.types import DF
|
|||
|
||||
field_template = "{field}: {type}"
|
||||
|
||||
start_block = "# begin: auto-generated types"
|
||||
end_block = "# end: auto-generated types"
|
||||
start_block = """# begin: auto-generated types
|
||||
# ruff: noqa
|
||||
"""
|
||||
end_block = """# ruff: noqa
|
||||
# end: auto-generated types
|
||||
"""
|
||||
|
||||
type_code_block_template = """{start_block}
|
||||
# This code is auto-generated. Do not modify anything in this block.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue