Browse Source

Fix invalid black formatting

Gautier P 9 months ago
parent
commit
1bd855dbd8
5 changed files with 9 additions and 9 deletions
  1. 1
    1
      flatisfy/config.py
  2. 2
    2
      flatisfy/fetch.py
  3. 1
    1
      flatisfy/filters/duplicates.py
  4. 3
    3
      flatisfy/filters/metadata.py
  5. 2
    2
      flatisfy/tools.py

+ 1
- 1
flatisfy/config.py View File

@@ -271,7 +271,7 @@ def load_config(args=None, check_with_data=True):
271 271
                 config_data.update(json.load(fh))
272 272
         except (IOError, ValueError) as exc:
273 273
             LOGGER.error(
274
-                "Unable to load configuration from file, " "using default configuration: %s.",
274
+                "Unable to load configuration from file, using default configuration: %s.",
275 275
                 exc,
276 276
             )
277 277
 

+ 2
- 2
flatisfy/fetch.py View File

@@ -24,7 +24,7 @@ try:
24 24
     from weboob.core.ouiboube import WebNip
25 25
     from weboob.tools.json import WeboobEncoder
26 26
 except ImportError:
27
-    LOGGER.error("Weboob is not available on your system. Make sure you " "installed it.")
27
+    LOGGER.error("Weboob is not available on your system. Make sure you installed it.")
28 28
     raise
29 29
 
30 30
 
@@ -107,7 +107,7 @@ class WebOOBProxy(object):
107 107
             except CallErrors as exc:
108 108
                 # If an error occured, just log it
109 109
                 LOGGER.error(
110
-                    ("An error occured while building query for " "postal code %s: %s"),
110
+                    ("An error occured while building query for postal code %s: %s"),
111 111
                     postal_code,
112 112
                     str(exc),
113 113
                 )

+ 1
- 1
flatisfy/filters/duplicates.py View File

@@ -330,7 +330,7 @@ def deep_detect(flats_list, config):
330 330
             if n_common_items >= config["duplicate_threshold"]:
331 331
                 # Mark flats as duplicates
332 332
                 LOGGER.info(
333
-                    ("Found duplicates using deep detection: (%s, %s). " "Score is %d."),
333
+                    ("Found duplicates using deep detection: (%s, %s). Score is %d."),
334 334
                     flat1["id"],
335 335
                     flat2["id"],
336 336
                     n_common_items,

+ 3
- 3
flatisfy/filters/metadata.py View File

@@ -192,7 +192,7 @@ def guess_postal_code(flats_list, constraint, config, distance_threshold=20000):
192 192
         if not location:
193 193
             # Skip everything if empty location
194 194
             LOGGER.info(
195
-                ("No location field for flat %s, skipping postal " "code lookup. (%s)"),
195
+                ("No location field for flat %s, skipping postal code lookup. (%s)"),
196 196
                 flat["id"],
197 197
                 flat.get("address"),
198 198
             )
@@ -358,7 +358,7 @@ def guess_stations(flats_list, constraint, config):
358 358
                         )
359 359
                         break
360 360
                     LOGGER.info(
361
-                        ("Station %s is too far from flat %s (%dm > %dm), " "discarding this station."),
361
+                        ("Station %s is too far from flat %s (%dm > %dm), discarding this station."),
362 362
                         station[0],
363 363
                         flat["id"],
364 364
                         int(distance),
@@ -418,7 +418,7 @@ def compute_travel_times(flats_list, constraint, config):
418 418
         if not flat["flatisfy"].get("matched_stations", []):
419 419
             # Skip any flat without matched stations
420 420
             LOGGER.info(
421
-                "Skipping travel time computation for flat %s. No matched " "stations.",
421
+                "Skipping travel time computation for flat %s. No matched stations.",
422 422
                 flat["id"],
423 423
             )
424 424
             continue

+ 2
- 2
flatisfy/tools.py View File

@@ -416,7 +416,7 @@ def get_travel_time_between(latlng_from, latlng_to, mode, config):
416 416
             ) as exc:
417 417
                 # Ignore any possible exception
418 418
                 LOGGER.warning(
419
-                    "An exception occurred during travel time lookup on " "Navitia: %s.",
419
+                    "An exception occurred during travel time lookup on Navitia: %s.",
420 420
                     str(exc),
421 421
                 )
422 422
         else:
@@ -461,7 +461,7 @@ def get_travel_time_between(latlng_from, latlng_to, mode, config):
461 461
             except (requests.exceptions.RequestException, IndexError, KeyError) as exc:
462 462
                 # Ignore any possible exception
463 463
                 LOGGER.warning(
464
-                    "An exception occurred during travel time lookup on " "Mapbox: %s.",
464
+                    "An exception occurred during travel time lookup on Mapbox: %s.",
465 465
                     str(exc),
466 466
                 )
467 467
         else: