Pārlūkot izejas kodu

fix: use last version of Black

pull/73/head
Jérôme Deuchnord pirms 4 mēnešiem
vecāks
revīzija
214b327bc3
2 mainītis faili ar 12 papildinājumiem un 10 dzēšanām
  1. +11
    -9
      kosmorrolib/model.py
  2. +1
    -1
      pyproject.toml

+ 11
- 9
kosmorrolib/model.py Parādīt failu

@@ -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
),
}




+ 1
- 1
pyproject.toml Parādīt failu

@@ -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"


Notiek ielāde…
Atcelt
Saglabāt