From e02a5b5849a0020aef93da28e35a93ed126cb375 Mon Sep 17 00:00:00 2001 From: salemsd Date: Fri, 6 Dec 2024 11:00:09 +0100 Subject: [PATCH] feat(api): reformat code --- src/antares/model/study.py | 2 +- src/antares/service/api_services/study_api.py | 2 +- src/antares/service/base_services.py | 2 +- src/antares/service/local_services/study_local.py | 2 +- tests/antares/services/api_services/test_study_api.py | 2 +- tests/integration/test_web_client.py | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/antares/model/study.py b/src/antares/model/study.py index 30614946..bcf0c6d4 100644 --- a/src/antares/model/study.py +++ b/src/antares/model/study.py @@ -375,4 +375,4 @@ def _create_correlation_ini_files(local_settings: StudySettingsLocal, study_dire season_correlation=getattr(local_settings.time_series_parameters, field).season_correlation, ), ) - ini_file.write_ini_file() \ No newline at end of file + ini_file.write_ini_file() diff --git a/src/antares/service/api_services/study_api.py b/src/antares/service/api_services/study_api.py index a2055edc..d95b8456 100644 --- a/src/antares/service/api_services/study_api.py +++ b/src/antares/service/api_services/study_api.py @@ -118,4 +118,4 @@ def create_variant(self, variant_name: str) -> "Study": variant_id = response.json() return study.read_study_api(self.config, variant_id) except APIError as e: - raise StudyVariantCreationError(self.study_id, e.message) from e \ No newline at end of file + raise StudyVariantCreationError(self.study_id, e.message) from e diff --git a/src/antares/service/base_services.py b/src/antares/service/base_services.py index f57e7d04..1866c26d 100644 --- a/src/antares/service/base_services.py +++ b/src/antares/service/base_services.py @@ -564,4 +564,4 @@ def update_st_storage_properties( @abstractmethod def read_st_storages(self, area_id: str) -> List[STStorage]: - pass \ No newline at end of file + pass diff --git a/src/antares/service/local_services/study_local.py b/src/antares/service/local_services/study_local.py index ef60af95..e6841a03 100644 --- a/src/antares/service/local_services/study_local.py +++ b/src/antares/service/local_services/study_local.py @@ -45,4 +45,4 @@ def delete(self, children: bool) -> None: raise NotImplementedError def create_variant(self, variant_name: str) -> "Study": - raise NotImplementedError \ No newline at end of file + raise NotImplementedError diff --git a/tests/antares/services/api_services/test_study_api.py b/tests/antares/services/api_services/test_study_api.py index f3c75248..bb73a882 100644 --- a/tests/antares/services/api_services/test_study_api.py +++ b/tests/antares/services/api_services/test_study_api.py @@ -291,4 +291,4 @@ def test_create_variant_fails(self): self.study.create_variant(variant_name) with pytest.raises(StudyVariantCreationError, match=error_message): - create_variant_api(self.api, self.study_id, variant_name) \ No newline at end of file + create_variant_api(self.api, self.study_id, variant_name) diff --git a/tests/integration/test_web_client.py b/tests/integration/test_web_client.py index 8b485c22..e33da4dd 100644 --- a/tests/integration/test_web_client.py +++ b/tests/integration/test_web_client.py @@ -475,4 +475,4 @@ def test_create_variant(self, antares_web: AntaresWebDesktop): assert variant.get_settings() == study.get_settings() assert list(variant.get_areas().keys()) == list(study.get_areas().keys()) assert list(variant.get_links().keys()) == list(study.get_links().keys()) - assert list(variant.get_binding_constraints().keys()) == list(study.get_binding_constraints().keys()) \ No newline at end of file + assert list(variant.get_binding_constraints().keys()) == list(study.get_binding_constraints().keys())