diff --git a/pyproject.toml b/pyproject.toml index 2e0d4d87..148f52b9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -216,6 +216,12 @@ ignore = [ #extend-select = [] +[tool.ruff.lint.pep8-naming] +classmethod-decorators = [ + # Allow Pydantic's `@validator` decorator to trigger class method treatment. + "pydantic.validator", +] + [tool.ruff.lint.per-file-ignores] "__init__.py" = ["E402", "F401"] "tests/*.py" = ["ASYNC"] # Disable ASYNC check for tests