Skip to content

Commit f9617d4

Browse files
committed
Address review wrt/snake_case
1 parent 33db232 commit f9617d4

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

sherlock/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
__longname__ = "Sherlock: Find Usernames Across Social Networks"
1010
__version__ = "0.15.0"
1111

12-
forgeApiLatestReleaseUrl = "https://api.github.com/repos/sherlock-project/sherlock/releases/latest"
12+
forge_api_latest_release = "https://api.github.com/repos/sherlock-project/sherlock/releases/latest"

sherlock/sherlock.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
__longname__,
2626
__shortname__,
2727
__version__,
28-
forgeApiLatestReleaseUrl,
28+
forge_api_latest_release,
2929
)
3030

3131
from sherlock.result import QueryStatus
@@ -668,14 +668,14 @@ def main():
668668

669669
# Check for newer version of Sherlock. If it exists, let the user know about it
670670
try:
671-
latestReleaseJsonRaw = requests.get(forgeApiLatestReleaseUrl).text
672-
latestReleaseJsonData = json_loads(latestReleaseJsonRaw)
673-
latestRemoteTag = latestReleaseJsonData["tag_name"]
671+
latest_release_raw = requests.get(forge_api_latest_release).text
672+
latest_release_json = json_loads(latest_release_raw)
673+
latest_remote_tag = latest_release_json["tag_name"]
674674

675-
if latestRemoteTag[1:] != __version__:
675+
if latest_remote_tag[1:] != __version__:
676676
print(
677-
f"Update available! {__version__} --> {latestRemoteTag[1:]}"
678-
f"\n{latestReleaseJsonData['html_url']}"
677+
f"Update available! {__version__} --> {latest_remote_tag[1:]}"
678+
f"\n{latest_release_json['html_url']}"
679679
)
680680

681681
except Exception as error:

0 commit comments

Comments
 (0)