From f5adeda2d880811d3a9853ffdecfcbdef512483c Mon Sep 17 00:00:00 2001 From: AlTosterino Date: Tue, 9 Jul 2024 17:40:14 +0200 Subject: [PATCH] :recycle: Remove `print` --- pyproject.toml | 2 +- src/adrpy/shared_kernel/settings.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 72a7927..8f1010b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -49,4 +49,4 @@ line-length = 100 target-version = "py311" [tool.ruff.lint] -select = ["E", "F", "I", "PL"] +select = ["E", "F", "I", "PL", "T20"] diff --git a/src/adrpy/shared_kernel/settings.py b/src/adrpy/shared_kernel/settings.py index b50f367..fc24198 100644 --- a/src/adrpy/shared_kernel/settings.py +++ b/src/adrpy/shared_kernel/settings.py @@ -9,9 +9,8 @@ class Settings: initial_adr_dir: Path | None = None # TODO: Rename to requested_adr_dir or something APP_TEMPLATES_DIR: Path = field(init=False, default=Path(__file__).parents[1] / "templates") - @property + @cached_property def adr_dir(self) -> Path | None: - print("AD", Path.cwd()) if self.initial_adr_dir: return self.initial_adr_dir if adr_dir_from_config := self.__get_adr_dir_from_config():