From 92bbc3ebff3e43ad48eedc4303d3d17a685a168a Mon Sep 17 00:00:00 2001 From: Charlie Meyers Date: Sun, 1 Dec 2024 22:25:30 +0100 Subject: [PATCH] linting --- Dockerfile | 2 +- deckard/__init__.py | 2 +- deckard/layers/aft.py | 2 +- deckard/layers/optimise.py | 1 + 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8b5dd3c5..ddbac621 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,4 +14,4 @@ RUN apt-get upgrade -y RUN git clone https://github.com/simplymathematics/deckard.git WORKDIR /deckard RUN git submodule update --init --recursive -j -1 -RUN python3 -m pip install -e . --verbose \ No newline at end of file +RUN python3 -m pip install -e . --verbose diff --git a/deckard/__init__.py b/deckard/__init__.py index 70c9311d..3cbb7bbf 100644 --- a/deckard/__init__.py +++ b/deckard/__init__.py @@ -26,7 +26,7 @@ "handlers": { "default": { # Use RotatingFileHandler for log rotation - "class": "logging.handlers.RotatingFileHandler", + "class": "logging.handlers.RotatingFileHandler", "filename": os.path.join(Path.cwd(), "deckard.log"), "formatter": "std", "level": logging.DEBUG, diff --git a/deckard/layers/aft.py b/deckard/layers/aft.py index d03653a4..8ae0deb3 100644 --- a/deckard/layers/aft.py +++ b/deckard/layers/aft.py @@ -923,5 +923,5 @@ def aft_main(args): args = aft_parser.parse_args() if "__main__" == __name__: - + aft_main(args) diff --git a/deckard/layers/optimise.py b/deckard/layers/optimise.py index 4ce9fcc9..60ab227a 100644 --- a/deckard/layers/optimise.py +++ b/deckard/layers/optimise.py @@ -327,6 +327,7 @@ def optimise_main(cfg: DictConfig) -> float: score = optimise(cfg) return score + if __name__ == "__main__": logger = logging.getLogger(__name__) assert Path(