Skip to content

Commit c6e271a

Browse files
committed
Fix ruff D420 lint violations by adding D420 to ignore list
D420 (section ordering in docstrings) is triggered by auto-generated opset files where Args appears after Returns. Since these files are auto-generated, suppressing the rule is the correct fix. Signed-off-by: Ti-Tai Wang <titaiwang@microsoft.com>
1 parent f312415 commit c6e271a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ ignore = [
145145
"D212",
146146
"D400",
147147
"D401", # First line of docstring should be in imperative mood
148+
"D420", # Section ordering in auto-generated opset docstrings
148149
"D415", # D415 Not yet enforced. "First line should end with a period, question mark, or exclamation point"
149150
"E1", "E2", "E3", # Pycodestyle formatting rules that conflicts with the formatter
150151
"E501", # Line length. Not enforced because black will handle formatting

0 commit comments

Comments
 (0)