From 214b327bc36af664d58f2bca2e33ed3e2b10f55f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Deuchnord?= Date: Sat, 3 Aug 2024 12:50:54 +0200 Subject: [PATCH] fix: use last version of Black --- kosmorrolib/model.py | 20 +++++++++++--------- pyproject.toml | 2 +- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/kosmorrolib/model.py b/kosmorrolib/model.py index aadf068..c535090 100644 --- a/kosmorrolib/model.py +++ b/kosmorrolib/model.py @@ -283,15 +283,17 @@ class AsterEphemerides(Serializable): def serialize(self) -> dict: return { "object": self.object.serialize(), - "rise_time": self.rise_time.isoformat() - if self.rise_time is not None - else None, - "culmination_time": self.culmination_time.isoformat() - if self.culmination_time is not None - else None, - "set_time": self.set_time.isoformat() - if self.set_time is not None - else None, + "rise_time": ( + self.rise_time.isoformat() if self.rise_time is not None else None + ), + "culmination_time": ( + self.culmination_time.isoformat() + if self.culmination_time is not None + else None + ), + "set_time": ( + self.set_time.isoformat() if self.set_time is not None else None + ), } diff --git a/pyproject.toml b/pyproject.toml index c805ade..afaad8a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -29,7 +29,7 @@ skyfield-data = "*" python-dateutil = "^2.8" [tool.poetry.group.dev.dependencies] -black = "^23.1" +black = ">23.1,<25.0" parameterized = "^0.9.0" coverage = "^6.1.2" coveralls = "^3.3.1"