fix: Skip ruff qa on auto-generated typing blocks

This commit is contained in:
Gavin D'souza 2025-03-27 12:57:45 +01:00
parent 30538e38f6
commit a3dac79b2e
No known key found for this signature in database
GPG key ID: 5413A43FBD450A34

View file

@ -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.