diff --git a/src/settings/pyproject.rs b/src/settings/pyproject.rs index 7e60baac6f..effd349133 100644 --- a/src/settings/pyproject.rs +++ b/src/settings/pyproject.rs @@ -382,7 +382,10 @@ other-attribute = 1 "longMessage".to_string(), "maxDiff".to_string(), ]), - classmethod_decorators: Some(vec!["classmethod".to_string()]), + classmethod_decorators: Some(vec![ + "classmethod".to_string(), + "pydantic.validator".to_string() + ]), staticmethod_decorators: Some(vec!["staticmethod".to_string()]), }), }