From 50f2d6502b4dc2a39bb3cbef4a30c7374e9d5463 Mon Sep 17 00:00:00 2001 From: Antti Kaihola <13725+akaihola@users.noreply.github.com> Date: Thu, 1 Aug 2024 23:10:11 +0300 Subject: [PATCH] build: add some dir/file specific ruff rules --- pyproject.toml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index d0167371e..39cf93358 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -50,6 +50,15 @@ ignore = [ ] [tool.ruff.lint.per-file-ignores] +"action/*.py" = [ + "T201", # `print` found +] +"action/tests/*.py" = [ + "S101", # Use of `assert` detected +] +"src/darker/__main__.py" = [ + "T201", # `print` found +] "src/darker/tests/*.py" = [ "ANN001", # Missing type annotation for function argument "ANN201", # Missing return type annotation for public function