Browse Source

Lint code

utf8exc
Lucas Verney 5 years ago
parent
commit
7196add731
  1. 2
      flatisfy/config.py
  2. 2
      flatisfy/models/flat.py

2
flatisfy/config.py

@ -143,7 +143,7 @@ def validate_config(config, check_with_data): @@ -143,7 +143,7 @@ def validate_config(config, check_with_data):
assert config["smtp_to"] is None or isinstance(config["smtp_to"], list)
assert isinstance(config["store_personal_data"], bool)
assert isinstance(config["max_distance_housing_station"], int) or isinstance(config["max_distance_housing_station"], float) # noqa: E501
assert isinstance(config["max_distance_housing_station"], (int, float))
# Ensure constraints are ok
assert config["constraints"]

2
flatisfy/models/flat.py

@ -5,10 +5,10 @@ This modules defines an SQLAlchemy ORM model for a flat. @@ -5,10 +5,10 @@ This modules defines an SQLAlchemy ORM model for a flat.
# pylint: disable=locally-disabled,invalid-name,too-few-public-methods
from __future__ import absolute_import, print_function, unicode_literals
import enum
import logging
import arrow
import enum
from sqlalchemy import (
Column, DateTime, Enum, Float, SmallInteger, String, Text, inspect

Loading…
Cancel
Save