From 767f194779baa7585d4a6d63bffa3f817731d10c Mon Sep 17 00:00:00 2001 From: Ali Al-Bayaty Date: Fri, 16 Aug 2024 21:01:20 -0700 Subject: [PATCH] Update pyproject.toml --- pyproject.toml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index f89038a..920854c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -47,3 +47,29 @@ addopts = "-ra -q" testpaths = [ "tests", ] + +[tool.black] +line-length = 100 +target-version = ['py39', 'py310', 'py311', 'py312'] + +[tool.ruff] +select = [ + # Rules in alphabetic order: + "C4", # category: flake8-comprehensions + "EXE", # Category: flake8-executable + "F631", # assert-tuple + "F632", # is-literal + "F634", # if-tuple + "F823", # undefined-local + "G", # flake8-logging-format + "T10", # category: flake8-debugger +] + +[tool.coverage.report] +exclude_also = [ + "def __repr__", # Printable representational string does not typically execute during testing + "raise NotImplementedError", # Abstract methods are not testable + "raise RuntimeError", # Exceptions for defensive programming that cannot be tested a head + "if TYPE_CHECKING:", # Code that only runs during type checks + "@abstractmethod", # Abstract methods are not testable +]