refac, add tests

This commit is contained in:
Taylor Wilsdon
2026-02-14 12:15:43 -05:00
parent f07072d1d9
commit 360da94e9e
4 changed files with 147 additions and 16 deletions

View File

@@ -333,6 +333,7 @@ class ValidationManager:
False,
f"{name} must be a number, got {type(param).__name__}",
)
# indent_first_line may be negative (hanging indent)
if name != "indent_first_line" and param < 0:
return False, f"{name} must be non-negative, got {param}"