Adjust flake8 to not consider constants magic
This commit is contained in:
parent
a1da1e9af8
commit
de3e489b39
7 changed files with 13 additions and 17 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue