From 87d59a5a72f0c1bf73ad9a7ecb391f13e9b085a3 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Wed, 11 Dec 2024 15:21:18 -0400 Subject: [PATCH] build: Add logging lint checks to ruff Checks for some common logging patterns to avoid. --- pyproject.toml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 07b85c5..cf4b453 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -43,7 +43,19 @@ line-length = 99 extend-exclude = ["__pycache__", "*.egg_info"] [tool.ruff.lint] -select = ["E", "W", "F", "C", "N", "D", "I001"] +select = [ + "E", + "W", + "F", + "C", + "N", + "D", + "I001", + "G001", # Logging statement uses str.format + "G002", # Logging statement uses % + "G003", # Logging statement uses + + "G004", # Logging statement uses an f-string +] ignore = ["E501", "D107"] extend-ignore = [ "D203",