From 1e4e8f41944fe2c24c8d089ee842e1c3cc68d364 Mon Sep 17 00:00:00 2001 From: cmp0xff Date: Sat, 31 Aug 2024 14:07:43 +0200 Subject: [PATCH] chore(pyproject): #81 ignore D100 for tutorials --- pyproject.toml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 994d771..d9ccdfd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -73,9 +73,15 @@ line-length = 88 # black default [tool.ruff.lint] select = ["ALL"] ignore = [ - "D107", # undocumented-public-init (D107): we document the class instead + "D107", # undocumented-public-init: we document the class instead "FA", "PLR", "S", "PD", "SLF", "PT", "FBT", "C", "ANN", "EM", "TRY", "ARG", "FIX", "TD", "TID", "ERA", "INP", "E", "SIM", "RUF", "RET" - ] +] + + +[tool.ruff.lint.per-file-ignores] +"docs/**/*.py" = [ + "D100", # undocumented-public-module: we keep tutorials clean and do not include doc strings +] [tool.ruff.lint.isort]