From e16f34e539fe63c82f106d0a9fe2081582a732b3 Mon Sep 17 00:00:00 2001 From: Freddy Heppell Date: Wed, 29 Jan 2025 12:04:50 +0000 Subject: [PATCH] Enable additional rules for print and logging --- pyproject.toml | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 1462d08..2d14fc3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -83,13 +83,20 @@ extend-exclude = ["docs/*"] [tool.ruff.lint] select = [ - "E4", - "E7", - "E9", - "F", - "UP", - "PT", - "I" + "E4", # pycodestyle Import + "E7", # pycodestyle Statement + "E9", # pycodestyle Runtime + "F", # pyflakes + "UP", # pyupgrde + "PT", # flake8-pytest-style + "I", # isort + "T20", # flake8-print + "LOG", # flake8-logging +] + +[tool.ruff.lint.per-file-ignores] +"**/tests/*" = [ + "T20", # Allow print in tests ] [tool.pytest.ini_options]