Skip to content

Commit

Permalink
Style fixes, version updates
Browse files Browse the repository at this point in the history
  • Loading branch information
npanuhin committed Jan 11, 2024
1 parent 3bc1e20 commit b074343
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/flake8.requirements.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
flake8~=6.1.0
flake8~=7.0.0

darglint~=1.8.1
dlint~=0.14.1
flake8-bugbear~=23.12.2
flake8-builtins~=2.2.0
flake8-comprehensions~=3.14.0
flake8-docstrings~=1.7.0
flake8-pie~=0.16
flake8-pie~=0.16.0
flake8-simplify~=0.21.0
pep8-naming~=0.13.3
4 changes: 2 additions & 2 deletions src/bing.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

import requests

from utils import mkpath, posixpath
from postprocess import postprocess_api
from Region import Region, REGIONS
from utils import mkpath, posixpath
from Region import REGIONS, Region
from gcloud import GCloud


Expand Down
2 changes: 1 addition & 1 deletion src/gcloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,5 @@ def gcloud_url(bucket_path: str):

if __name__ == '__main__':
gcloud = GCloud()
# gcloud.upload_file('../api/US/images/2023-12-08.jpg', '2023-12-08.jpg')
# print(gcloud.upload_file('../api/US/images/2023-12-08.jpg', '2023-12-08.jpg'))
print(gcloud.compare_images('b5ef1f21782d1e99e81c31e01a0e9ef5.jpg', 'US/en/2018-10-14.jpg'))
4 changes: 2 additions & 2 deletions src/gcloud_conf.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"project_id": "bing-wallpaper-archive",
"bucket_name": "npanuhin-bing-wallpaper-archive"
"project_id": "bing-wallpaper-archive",
"bucket_name": "npanuhin-bing-wallpaper-archive"
}
1 change: 1 addition & 0 deletions src/images.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from hashlib import sha256

from PIL import Image


Expand Down
2 changes: 2 additions & 0 deletions src/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
google-cloud-storage~=2.14.0
requests~=2.31.0
Pillow~=10.2.0
boto3~=1.34.16

0 comments on commit b074343

Please sign in to comment.