From 07b6cfe530c8f3ab2aa2ae1741bbf3b7364ec86b Mon Sep 17 00:00:00 2001 From: KanaiYuma Date: Tue, 2 Aug 2022 14:16:48 +0900 Subject: [PATCH 1/2] fix for pycodestyle --- aiaccel/master/abstract_master.py | 2 +- aiaccel/optimizer/tpe/search.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/aiaccel/master/abstract_master.py b/aiaccel/master/abstract_master.py index 502875ee..c5e7d50d 100644 --- a/aiaccel/master/abstract_master.py +++ b/aiaccel/master/abstract_master.py @@ -342,7 +342,7 @@ def other_process_is_alive(self) -> bool: Returns: bool """ - if( + if ( not self.optimizer_proc.poll() is None or not self.scheduler_proc.poll() is None ): diff --git a/aiaccel/optimizer/tpe/search.py b/aiaccel/optimizer/tpe/search.py index cf44b4c5..bccbd0eb 100644 --- a/aiaccel/optimizer/tpe/search.py +++ b/aiaccel/optimizer/tpe/search.py @@ -244,7 +244,7 @@ def _deserialize(self, dict_objects: dict) -> None: # debug print('Running trial does not match any running files.') print('\ttrial params: ', t.params) - raise() + raise () def create_distributions( From ce0fda55a535d8d25fbcd84e05df3cee76c6d185 Mon Sep 17 00:00:00 2001 From: KanaiYuma Date: Tue, 2 Aug 2022 15:31:08 +0900 Subject: [PATCH 2/2] add flake8==4.0.1 --- requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/requirements.txt b/requirements.txt index fca65fa3..8efff183 100644 --- a/requirements.txt +++ b/requirements.txt @@ -16,6 +16,7 @@ pytest pytest-arraydiff==0.2 pytest-astropy==0.4.0 pytest-cov==2.10.1 +flake8==4.0.1 pytest-flake8==1.0.6 pytest-pycodestyle==2.2.0 pytest-subprocess==1.0.0