@@ -217,10 +217,21 @@ ignore = [
217217 " E731" , # Lambda assignment (used in callbacks)
218218 " B019" , # `functools.lru_cache` on methods (handled manually)
219219 " PLR0912" , # Too many branches
220+ " PLC0105" , # Ignore contravariant
221+ " RUF002" , # Ignore Unicode
220222]
221223fixable = [" ALL" ]
222224unfixable = []
223225
226+ # Ignore all errors in docstrings
227+ [tool .ruff .lint .pydocstyle ]
228+ convention = " google" # or "numpy", "pep257"
229+ ignore-decorators = [" typing.overload" ]
230+
231+ [tool .ruff .lint .flake8-type-checking ]
232+ # Don't check code examples in docstrings
233+ quote-annotations = true
234+
224235[tool .ruff .lint .isort ]
225236required-imports = [" from __future__ import annotations" ]
226237known-first-party = [" zvec" ]
@@ -237,6 +248,9 @@ known-first-party = ["zvec"]
237248"python/zvec/model/doc.py" = [
238249 " RUF023" , # Unused sort (for __slot__)
239250]
251+ "python/zvec/extension/**" = [
252+ " PLC0415" , # Import outside top-level (dynamic imports in _get_model)
253+ ]
240254
241255[tool .ruff .format ]
242256indent-style = " space"
0 commit comments