Skip to content

Commit

Permalink
feat(api): reformat code
Browse files Browse the repository at this point in the history
  • Loading branch information
salemsd committed Dec 6, 2024
1 parent 2c01407 commit e02a5b5
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/antares/model/study.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
ini_file.write_ini_file()
2 changes: 1 addition & 1 deletion src/antares/service/api_services/study_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
raise StudyVariantCreationError(self.study_id, e.message) from e
2 changes: 1 addition & 1 deletion src/antares/service/base_services.py
Original file line number Diff line number Diff line change
Expand Up @@ -564,4 +564,4 @@ def update_st_storage_properties(

@abstractmethod
def read_st_storages(self, area_id: str) -> List[STStorage]:
pass
pass
2 changes: 1 addition & 1 deletion src/antares/service/local_services/study_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ def delete(self, children: bool) -> None:
raise NotImplementedError

def create_variant(self, variant_name: str) -> "Study":
raise NotImplementedError
raise NotImplementedError
2 changes: 1 addition & 1 deletion tests/antares/services/api_services/test_study_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
create_variant_api(self.api, self.study_id, variant_name)
2 changes: 1 addition & 1 deletion tests/integration/test_web_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())
assert list(variant.get_binding_constraints().keys()) == list(study.get_binding_constraints().keys())

0 comments on commit e02a5b5

Please sign in to comment.