Adjust flake8 to not consider constants magic

This commit is contained in:
Alexander Hess 2021-01-24 18:31:02 +01:00
commit de3e489b39
Signed by: alexander
GPG key ID: 344EA5AB10D868E0
7 changed files with 13 additions and 17 deletions

View file

@ -51,7 +51,7 @@ class Grid(meta.Base):
@property
def pixel_area(self) -> float:
"""The area of a `Pixel` on the grid in square kilometers."""
return round((self.side_length ** 2) / 1_000_000, 1) # noqa:WPS432
return round((self.side_length ** 2) / 1_000_000, 1)
@classmethod
def gridify(cls, city: db.City, side_length: int) -> db.Grid: