From 4d53d345d67292bca0a048ec9076f3a4a64ef79b Mon Sep 17 00:00:00 2001 From: Dominik Jain Date: Mon, 25 Sep 2023 11:18:17 +0200 Subject: [PATCH] Ignore Ruff rule RET505, because it sacrifices visual discernability of control flow paths for brevity (regarding return statements) --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index 4601db5..02ea1e0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -126,6 +126,7 @@ ignore = [ "B028", # we don't need explicit stacklevel for warnings "D100", "D101", "D102", "D104", "D105", "D107", "D203", "D213", "D401", "D402", "D106", # docstring stuff "DTZ005", # we don't need that + "RET505", # sacrifices visual discernability of control flow paths for brevity (regarding return statements) # remaining rules from https://github.com/psf/black/blob/main/.flake8 (except W503) # this is a simplified version of config, making vscode plugin happy "E402", "E501", "E701", "E731", "C408", "E203"