kython, remove old ci script
This commit is contained in:
parent
9b5afd9441
commit
5dc4f309fd
3 changed files with 3 additions and 14 deletions
10
ci.sh
10
ci.sh
|
@ -1,10 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
cd "$(this_dir)" || exit
|
||||
|
||||
. ~/bash_ci
|
||||
|
||||
ci_run mypy photos
|
||||
ci_run pylint -E photos
|
||||
|
||||
ci_report_errors
|
|
@ -2,6 +2,7 @@ from datetime import datetime
|
|||
import itertools
|
||||
import os
|
||||
from os.path import join, basename
|
||||
import json
|
||||
import re
|
||||
from typing import Tuple, Dict, Optional, NamedTuple, Iterator, Iterable, List
|
||||
|
||||
|
@ -12,8 +13,6 @@ import magic # type: ignore
|
|||
import PIL.Image # type: ignore
|
||||
from PIL.ExifTags import TAGS, GPSTAGS # type: ignore
|
||||
|
||||
from kython import json_load
|
||||
|
||||
import logging
|
||||
def get_logger():
|
||||
return logging.getLogger('photo-provider')
|
||||
|
@ -225,7 +224,7 @@ def iter_photos() -> Iterator[Photo]:
|
|||
if os.path.isfile(geof):
|
||||
j: Dict
|
||||
with open(geof, 'r') as fo:
|
||||
j = json_load(fo)
|
||||
j = json.load(fo)
|
||||
if 'name' in j:
|
||||
g = geolocator.geocode(j['name'])
|
||||
geo = (g.latitude, g.longitude)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import logging
|
||||
logging.basicConfig(level=logging.INFO)
|
||||
|
||||
from kython.logging import setup_logzero
|
||||
from kython.klogging import setup_logzero
|
||||
|
||||
from photos import get_photos, iter_photos, get_logger
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue