From 0fc24dd4ac76474621e737d134b5de151aadbd56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Tue, 26 Dec 2023 21:56:12 +0100 Subject: [PATCH] ruff: enable more linting --- pyproject.toml | 52 +++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 49 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 492c346..b683a00 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,11 +32,57 @@ packages = [ [tool.ruff] target-version = "py311" line-length = 88 -select = ["E", "F", "I", "U", "N"] -ignore = [ "E501" ] +select = ["ALL"] +ignore = [ + # pydocstyle + "D", + # todo comments + "TD", + # fixmes + "FIX", + + # Unused function argument + "ARG001", + "ARG002", + + # Missing type annotation for `self` in method + "ANN101", + # Dynamically typed expressions (typing.Any) + "ANN401", + # Trailing comma missing + "COM812", + # Unnecessary `dict` call (rewrite as a literal) + "C408", + # Boolean-typed positional argument in function definition + "FBT001", + # Logging statement uses f-string + "G004", + # disabled on ruff's recommendation as causes problems with the formatter + "ISC001", + # Use of `assert` detected + "S101", + # `subprocess` call: check for execution of untrusted input + "S603", + # Starting a process with a partial executable path + "S607", + # Boolean default positional argument in function definition + "FBT002", + + # Too many statements + "PLR0915", + # Too many arguments in function definition + "PLR0913", + "PLR0912", # Too many branches + # $X is too complex + "C901", + + "E501", # line too long + "T201", # `print` found + "PLR2004", # Magic value used in comparison +] [tool.mypy] -python_version = "3.10" +python_version = "3.11" pretty = true warn_redundant_casts = true disallow_untyped_calls = true