Remove pylint from the project
This commit is contained in:
parent
100fac659a
commit
9196c88ed4
25 changed files with 9 additions and 172 deletions
|
|
@ -68,8 +68,7 @@ class Address(meta.Base):
|
|||
pixels = orm.relationship('AddressPixelAssociation', back_populates='address')
|
||||
|
||||
# We do not implement a `.__init__()` method and leave that to SQLAlchemy.
|
||||
# Instead, we use `hasattr()` to check for uninitialized attributes.
|
||||
# grep:b1f68d24 pylint:disable=attribute-defined-outside-init
|
||||
# Instead, we use `hasattr()` to check for uninitialized attributes. grep:b1f68d24
|
||||
|
||||
def __repr__(self) -> str:
|
||||
"""Non-literal text representation."""
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
"""Provide the ORM's `City` model."""
|
||||
|
||||
|
||||
import sqlalchemy as sa
|
||||
from sqlalchemy import orm
|
||||
from sqlalchemy.dialects import postgresql
|
||||
|
|
@ -35,8 +34,7 @@ class City(meta.Base):
|
|||
grids = orm.relationship('Grid', back_populates='city')
|
||||
|
||||
# We do not implement a `.__init__()` method and leave that to SQLAlchemy.
|
||||
# Instead, we use `hasattr()` to check for uninitialized attributes.
|
||||
# grep:d334120e pylint:disable=attribute-defined-outside-init
|
||||
# Instead, we use `hasattr()` to check for uninitialized attributes. grep:d334120e
|
||||
|
||||
def __repr__(self) -> str:
|
||||
"""Non-literal text representation."""
|
||||
|
|
|
|||
|
|
@ -24,8 +24,6 @@ class Location:
|
|||
https://en.wikipedia.org/wiki/Universal_Transverse_Mercator_coordinate_system
|
||||
"""
|
||||
|
||||
# pylint:disable=too-many-instance-attributes
|
||||
|
||||
def __init__(self, latitude: float, longitude: float) -> None:
|
||||
"""Create a location from a WGS84-conforming `latitude`-`longitude` pair."""
|
||||
# The SQLAlchemy columns come as `Decimal`s due to the `DOUBLE_PRECISION`.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue