From 0d36c8556868545aef74a9298315310c6da81eb9 Mon Sep 17 00:00:00 2001 From: link2xt Date: Tue, 17 Jun 2025 22:37:06 +0000 Subject: [PATCH] chore: disable some Python lints introduced in ruff 0.12 --- deltachat-rpc-client/pyproject.toml | 3 +++ python/pyproject.toml | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/deltachat-rpc-client/pyproject.toml b/deltachat-rpc-client/pyproject.toml index 4fd75e90d..53dcc506a 100644 --- a/deltachat-rpc-client/pyproject.toml +++ b/deltachat-rpc-client/pyproject.toml @@ -66,6 +66,9 @@ lint.select = [ "RUF006" # asyncio-dangling-task ] +lint.ignore = [ + "PLC0415" # `import` should be at the top-level of a file +] line-length = 120 [tool.isort] diff --git a/python/pyproject.toml b/python/pyproject.toml index aa5b360ae..080660906 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -47,6 +47,10 @@ line-length = 120 [tool.ruff] lint.select = ["E", "F", "W", "YTT", "C4", "ISC", "ICN", "TID", "DTZ", "PLC", "PLE", "PLW", "PIE", "COM", "UP004", "UP010", "UP031", "UP032", "ANN204"] +lint.ignore = [ + "PLC0415", # `import` should be at the top-level of a file + "PLW1641" # Object does not implement `__hash__` method +] line-length = 120 [tool.isort]