aboutsummaryrefslogtreecommitdiffstats
path: root/bot/cogs
diff options
context:
space:
mode:
authorGravatar Daniel Brown <[email protected]>2018-10-10 09:13:57 -0500
committerGravatar Daniel Brown <[email protected]>2018-10-10 09:13:57 -0500
commit2e85819a1f155c0e098e8928a879b39d07e65048 (patch)
tree01cf9d4e1753b6145bc08d1dbcdd599fb7bc06eb /bot/cogs
parentTravis only has dev builds of 3.7 (diff)
Corrected linting errors.
Diffstat (limited to 'bot/cogs')
-rw-r--r--bot/cogs/hacktoberstats.py4
-rw-r--r--bot/cogs/halloweenify.py2
-rw-r--r--bot/cogs/movie.py8
3 files changed, 9 insertions, 5 deletions
diff --git a/bot/cogs/hacktoberstats.py b/bot/cogs/hacktoberstats.py
index 4e896ae9..0a280443 100644
--- a/bot/cogs/hacktoberstats.py
+++ b/bot/cogs/hacktoberstats.py
@@ -95,7 +95,9 @@ class Stats:
is_query = f"public+author:{username}"
date_range = "2018-10-01..2018-10-31"
per_page = "300"
- query_url = f"{base_url}-label:{not_label}+type:{action_type}+is:{is_query}+created:{date_range}&per_page={per_page}"
+ query_url = (
+ f"{base_url}-label:{not_label}+type:{action_type}+is:{is_query}+created:{date_range}&per_page={per_page}"
+ )
headers = {"user-agent": "Discord Python Hactoberbot"}
async with aiohttp.ClientSession() as session:
diff --git a/bot/cogs/halloweenify.py b/bot/cogs/halloweenify.py
index 8a9db3df..201f6b95 100644
--- a/bot/cogs/halloweenify.py
+++ b/bot/cogs/halloweenify.py
@@ -1,5 +1,5 @@
-from pathlib import Path
from json import load
+from pathlib import Path
from random import choice
diff --git a/bot/cogs/movie.py b/bot/cogs/movie.py
index bb6f8df8..647ee22a 100644
--- a/bot/cogs/movie.py
+++ b/bot/cogs/movie.py
@@ -1,8 +1,10 @@
-import requests
import random
from os import environ
-from discord.ext import commands
+
+import requests
from discord import Embed
+from discord.ext import commands
+
TMDB_API_KEY = environ.get('TMDB_API_KEY')
TMDB_TOKEN = environ.get('TMDB_TOKEN')
@@ -72,7 +74,7 @@ class Movie:
rating_count = movie.get('vote_average') / 2
rating = ''
- for i in range(int(rating_count)):
+ for _ in range(int(rating_count)):
rating += ':skull:'
if (rating_count % 1) >= .5: